home *** CD-ROM | disk | FTP | other *** search
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: PKZip Archive
(archive/zip ).
You can browse this item here: cascades.jar
Confidence Program Detection Match Type Support
100%
dexvert
PKZip Archive (archive/zip)
magic
Supported
66%
dexvert
JAR Archive (archive/jar)
ext
Supported
100%
file
Zip archive data, made by v2.3 UNIX, extract using at least v1.0, last modified, last modified Sun, Feb 04 2004 11:05:06, uncompressed size 2629, method=store
default
99%
file
Zip archive, with extra data prepended
default
98%
file
data
default
63%
TrID
Mozilla Archive Format (gen)
default (weak)
36%
TrID
ZIP compressed archive
default
100%
dexmagic
PrintFox/Pagefox WEAK
default
100%
siegfried
x-fmt/263 ZIP Format
default
100%
lsar
Zip
default
100%
gt2
ZIP Archiv gefunden (Auflistung ist deaktiviert)
default
100%
detectItEasy
Archive: Zip(1.0)[100.0%,19 files]
default
100%
binwalkID
Zip archive data, at least v1.0 to extract, compressed size: 2629, uncompressed size: 2629, name: content/cascades/EdCssProps.css
default
100%
xdgMime
application/zip
default
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 50 4b 03 04 0a 00 00 00 | 00 00 a3 58 44 30 b0 cb |PK......|...XD0..| |00000010| 80 17 45 0a 00 00 45 0a | 00 00 1f 00 15 00 63 6f |..E...E.|......co| |00000020| 6e 74 65 6e 74 2f 63 61 | 73 63 61 64 65 73 2f 45 |ntent/ca|scades/E| |00000030| 64 43 73 73 50 72 6f 70 | 73 2e 63 73 73 55 54 09 |dCssProp|s.cssUT.| |00000040| 00 03 d2 c3 20 40 75 f8 | 5b 41 55 78 04 00 eb 03 |.... @u.|[AUx....| |00000050| 01 02 2f 2a 20 2a 2a 2a | 2a 2a 20 42 45 47 49 4e |../* ***|** BEGIN| |00000060| 20 4c 49 43 45 4e 53 45 | 20 42 4c 4f 43 4b 20 2a | LICENSE| BLOCK *| |00000070| 2a 2a 2a 2a 0a 20 2a 20 | 56 65 72 73 69 6f 6e 3a |****. * |Version:| |00000080| 20 4d 50 4c 20 31 2e 31 | 2f 47 50 4c 20 32 2e 30 | MPL 1.1|/GPL 2.0| |00000090| 2f 4c 47 50 4c 20 32 2e | 31 0a 20 2a 0a 20 2a 20 |/LGPL 2.|1. *. * | |000000a0| 54 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |The cont|ents of | |000000b0| 74 68 69 73 20 66 69 6c | 65 20 61 72 65 20 73 75 |this fil|e are su| |000000c0| 62 6a 65 63 74 20 74 6f | 20 74 68 65 20 4d 6f 7a |bject to| the Moz| |000000d0| 69 6c 6c 61 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |illa Pub|lic Lice| |000000e0| 6e 73 65 20 56 65 72 73 | 69 6f 6e 0a 20 2a 20 31 |nse Vers|ion. * 1| |000000f0| 2e 31 20 28 74 68 65 20 | 22 4c 69 63 65 6e 73 65 |.1 (the |"License| |00000100| 22 29 3b 20 79 6f 75 20 | 6d 61 79 20 6e 6f 74 20 |"); you |may not | |00000110| 75 73 65 20 74 68 69 73 | 20 66 69 6c 65 20 65 78 |use this| file ex| |00000120| 63 65 70 74 20 69 6e 20 | 63 6f 6d 70 6c 69 61 6e |cept in |complian| |00000130| 63 65 20 77 69 74 68 0a | 20 2a 20 74 68 65 20 4c |ce with.| * the L| |00000140| 69 63 65 6e 73 65 2e 20 | 59 6f 75 20 6d 61 79 20 |icense. |You may | |00000150| 6f 62 74 61 69 6e 20 61 | 20 63 6f 70 79 20 6f 66 |obtain a| copy of| |00000160| 20 74 68 65 20 4c 69 63 | 65 6e 73 65 20 61 74 0a | the Lic|ense at.| |00000170| 20 2a 20 68 74 74 70 3a | 2f 2f 77 77 77 2e 6d 6f | * http:|//www.mo| |00000180| 7a 69 6c 6c 61 2e 6f 72 | 67 2f 4d 50 4c 2f 0a 20 |zilla.or|g/MPL/. | |00000190| 2a 0a 20 2a 20 53 6f 66 | 74 77 61 72 65 20 64 69 |*. * Sof|tware di| |000001a0| 73 74 72 69 62 75 74 65 | 64 20 75 6e 64 65 72 20 |stribute|d under | |000001b0| 74 68 65 20 4c 69 63 65 | 6e 73 65 20 69 73 20 64 |the Lice|nse is d| |000001c0| 69 73 74 72 69 62 75 74 | 65 64 20 6f 6e 20 61 6e |istribut|ed on an| |000001d0| 20 22 41 53 20 49 53 22 | 20 62 61 73 69 73 2c 0a | "AS IS"| basis,.| |000001e0| 20 2a 20 57 49 54 48 4f | 55 54 20 57 41 52 52 41 | * WITHO|UT WARRA| |000001f0| 4e 54 59 20 4f 46 20 41 | 4e 59 20 4b 49 4e 44 2c |NTY OF A|NY KIND,| |00000200| 20 65 69 74 68 65 72 20 | 65 78 70 72 65 73 73 20 | either |express | |00000210| 6f 72 20 69 6d 70 6c 69 | 65 64 2e 20 53 65 65 20 |or impli|ed. See | |00000220| 74 68 65 20 4c 69 63 65 | 6e 73 65 0a 20 2a 20 66 |the Lice|nse. * f| |00000230| 6f 72 20 74 68 65 20 73 | 70 65 63 69 66 69 63 20 |or the s|pecific | |00000240| 6c 61 6e 67 75 61 67 65 | 20 67 6f 76 65 72 6e 69 |language| governi| |00000250| 6e 67 20 72 69 67 68 74 | 73 20 61 6e 64 20 6c 69 |ng right|s and li| |00000260| 6d 69 74 61 74 69 6f 6e | 73 20 75 6e 64 65 72 20 |mitation|s under | |00000270| 74 68 65 0a 20 2a 20 4c | 69 63 65 6e 73 65 2e 0a |the. * L|icense..| |00000280| 20 2a 0a 20 2a 20 54 68 | 65 20 4f 72 69 67 69 6e | *. * Th|e Origin| |00000290| 61 6c 20 43 6f 64 65 20 | 69 73 20 43 61 53 63 61 |al Code |is CaSca| |000002a0| 64 65 53 2c 20 61 20 73 | 74 79 6c 65 73 68 65 65 |deS, a s|tyleshee| |000002b0| 74 20 65 64 69 74 6f 72 | 20 66 6f 72 20 43 6f 6d |t editor| for Com| |000002c0| 70 6f 73 65 72 2e 0a 20 | 2a 0a 20 2a 20 54 68 65 |poser.. |*. * The| |000002d0| 20 49 6e 69 74 69 61 6c | 20 44 65 76 65 6c 6f 70 | Initial| Develop| |000002e0| 65 72 20 6f 66 20 74 68 | 65 20 4f 72 69 67 69 6e |er of th|e Origin| |000002f0| 61 6c 20 43 6f 64 65 20 | 69 73 0a 20 2a 20 44 61 |al Code |is. * Da| |00000300| 6e 69 65 6c 20 47 6c 61 | 7a 6d 61 6e 2e 0a 20 2a |niel Gla|zman.. *| |00000310| 20 50 6f 72 74 69 6f 6e | 73 20 63 72 65 61 74 65 | Portion|s create| |00000320| 64 20 62 79 20 74 68 65 | 20 49 6e 69 74 69 61 6c |d by the| Initial| |00000330| 20 44 65 76 65 6c 6f 70 | 65 72 20 61 72 65 20 43 | Develop|er are C| |00000340| 6f 70 79 72 69 67 68 74 | 20 28 43 29 20 32 30 30 |opyright| (C) 200| |00000350| 32 0a 20 2a 20 74 68 65 | 20 49 6e 69 74 69 61 6c |2. * the| Initial| |00000360| 20 44 65 76 65 6c 6f 70 | 65 72 2e 20 41 6c 6c 20 | Develop|er. All | |00000370| 52 69 67 68 74 73 20 52 | 65 73 65 72 76 65 64 2e |Rights R|eserved.| |00000380| 0a 20 2a 0a 20 2a 20 43 | 6f 6e 74 72 69 62 75 74 |. *. * C|ontribut| |00000390| 6f 72 28 73 29 3a 0a 20 | 2a 20 20 20 4f 72 69 67 |or(s):. |* Orig| |000003a0| 69 6e 61 6c 20 61 75 74 | 68 6f 72 3a 20 44 61 6e |inal aut|hor: Dan| |000003b0| 69 65 6c 20 47 6c 61 7a | 6d 61 6e 20 3c 64 61 6e |iel Glaz|man <dan| |000003c0| 69 65 6c 40 67 6c 61 7a | 6d 61 6e 2e 6f 72 67 3e |iel@glaz|man.org>| |000003d0| 0a 20 2a 0a 20 2a 20 41 | 6c 74 65 72 6e 61 74 69 |. *. * A|lternati| |000003e0| 76 65 6c 79 2c 20 74 68 | 65 20 63 6f 6e 74 65 6e |vely, th|e conten| |000003f0| 74 73 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 20 |ts of th|is file | |00000400| 6d 61 79 20 62 65 20 75 | 73 65 64 20 75 6e 64 65 |may be u|sed unde| |00000410| 72 20 74 68 65 20 74 65 | 72 6d 73 20 6f 66 0a 20 |r the te|rms of. | |00000420| 2a 20 65 69 74 68 65 72 | 20 74 68 65 20 47 4e 55 |* either| the GNU| |00000430| 20 47 65 6e 65 72 61 6c | 20 50 75 62 6c 69 63 20 | General| Public | |00000440| 4c 69 63 65 6e 73 65 20 | 56 65 72 73 69 6f 6e 20 |License |Version | |00000450| 32 20 6f 72 20 6c 61 74 | 65 72 20 28 74 68 65 20 |2 or lat|er (the | |00000460| 22 47 50 4c 22 29 2c 20 | 6f 72 0a 20 2a 20 74 68 |"GPL"), |or. * th| |00000470| 65 20 47 4e 55 20 4c 65 | 73 73 65 72 20 47 65 6e |e GNU Le|sser Gen| |00000480| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice| |00000490| 6e 73 65 20 56 65 72 73 | 69 6f 6e 20 32 2e 31 20 |nse Vers|ion 2.1 | |000004a0| 6f 72 20 6c 61 74 65 72 | 20 28 74 68 65 20 22 4c |or later| (the "L| |000004b0| 47 50 4c 22 29 2c 0a 20 | 2a 20 69 6e 20 77 68 69 |GPL"),. |* in whi| |000004c0| 63 68 20 63 61 73 65 20 | 74 68 65 20 70 72 6f 76 |ch case |the prov| |000004d0| 69 73 69 6f 6e 73 20 6f | 66 20 74 68 65 20 47 50 |isions o|f the GP| |000004e0| 4c 20 6f 72 20 74 68 65 | 20 4c 47 50 4c 20 61 72 |L or the| LGPL ar| |000004f0| 65 20 61 70 70 6c 69 63 | 61 62 6c 65 20 69 6e 73 |e applic|able ins| |00000500| 74 65 61 64 0a 20 2a 20 | 6f 66 20 74 68 6f 73 65 |tead. * |of those| |00000510| 20 61 62 6f 76 65 2e 20 | 49 66 20 79 6f 75 20 77 | above. |If you w| |00000520| 69 73 68 20 74 6f 20 61 | 6c 6c 6f 77 20 75 73 65 |ish to a|llow use| |00000530| 20 6f 66 20 79 6f 75 72 | 20 76 65 72 73 69 6f 6e | of your| version| |00000540| 20 6f 66 20 74 68 69 73 | 20 66 69 6c 65 20 6f 6e | of this| file on| |00000550| 6c 79 0a 20 2a 20 75 6e | 64 65 72 20 74 68 65 20 |ly. * un|der the | |00000560| 74 65 72 6d 73 20 6f 66 | 20 65 69 74 68 65 72 20 |terms of| either | |00000570| 74 68 65 20 47 50 4c 20 | 6f 72 20 74 68 65 20 4c |the GPL |or the L| |00000580| 47 50 4c 2c 20 61 6e 64 | 20 6e 6f 74 20 74 6f 20 |GPL, and| not to | |00000590| 61 6c 6c 6f 77 20 6f 74 | 68 65 72 73 20 74 6f 0a |allow ot|hers to.| |000005a0| 20 2a 20 75 73 65 20 79 | 6f 75 72 20 76 65 72 73 | * use y|our vers| |000005b0| 69 6f 6e 20 6f 66 20 74 | 68 69 73 20 66 69 6c 65 |ion of t|his file| |000005c0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms| |000005d0| 20 6f 66 20 74 68 65 20 | 4d 50 4c 2c 20 69 6e 64 | of the |MPL, ind| |000005e0| 69 63 61 74 65 20 79 6f | 75 72 0a 20 2a 20 64 65 |icate yo|ur. * de| |000005f0| 63 69 73 69 6f 6e 20 62 | 79 20 64 65 6c 65 74 69 |cision b|y deleti| |00000600| 6e 67 20 74 68 65 20 70 | 72 6f 76 69 73 69 6f 6e |ng the p|rovision| |00000610| 73 20 61 62 6f 76 65 20 | 61 6e 64 20 72 65 70 6c |s above |and repl| |00000620| 61 63 65 20 74 68 65 6d | 20 77 69 74 68 20 74 68 |ace them| with th| |00000630| 65 20 6e 6f 74 69 63 65 | 0a 20 2a 20 61 6e 64 20 |e notice|. * and | |00000640| 6f 74 68 65 72 20 70 72 | 6f 76 69 73 69 6f 6e 73 |other pr|ovisions| |00000650| 20 72 65 71 75 69 72 65 | 64 20 62 79 20 74 68 65 | require|d by the| |00000660| 20 47 50 4c 20 6f 72 20 | 74 68 65 20 4c 47 50 4c | GPL or |the LGPL| |00000670| 2e 20 49 66 20 79 6f 75 | 20 64 6f 20 6e 6f 74 20 |. If you| do not | |00000680| 64 65 6c 65 74 65 0a 20 | 2a 20 74 68 65 20 70 72 |delete. |* the pr| |00000690| 6f 76 69 73 69 6f 6e 73 | 20 61 62 6f 76 65 2c 20 |ovisions| above, | |000006a0| 61 20 72 65 63 69 70 69 | 65 6e 74 20 6d 61 79 20 |a recipi|ent may | |000006b0| 75 73 65 20 79 6f 75 72 | 20 76 65 72 73 69 6f 6e |use your| version| |000006c0| 20 6f 66 20 74 68 69 73 | 20 66 69 6c 65 20 75 6e | of this| file un| |000006d0| 64 65 72 0a 20 2a 20 74 | 68 65 20 74 65 72 6d 73 |der. * t|he terms| |000006e0| 20 6f 66 20 61 6e 79 20 | 6f 6e 65 20 6f 66 20 74 | of any |one of t| |000006f0| 68 65 20 4d 50 4c 2c 20 | 74 68 65 20 47 50 4c 20 |he MPL, |the GPL | |00000700| 6f 72 20 74 68 65 20 4c | 47 50 4c 2e 0a 20 2a 0a |or the L|GPL.. *.| |00000710| 20 2a 20 2a 2a 2a 2a 2a | 20 45 4e 44 20 4c 49 43 | * *****| END LIC| |00000720| 45 4e 53 45 20 42 4c 4f | 43 4b 20 2a 2a 2a 2a 2a |ENSE BLO|CK *****| |00000730| 20 2a 2f 0a 0a 40 6e 61 | 6d 65 73 70 61 63 65 20 | */..@na|mespace | |00000740| 75 72 6c 28 22 68 74 74 | 70 3a 2f 2f 77 77 77 2e |url("htt|p://www.| |00000750| 6d 6f 7a 69 6c 6c 61 2e | 6f 72 67 2f 6b 65 79 6d |mozilla.|org/keym| |00000760| 61 73 74 65 72 2f 67 61 | 74 65 6b 65 65 70 65 72 |aster/ga|tekeeper| |00000770| 2f 74 68 65 72 65 2e 69 | 73 2e 6f 6e 6c 79 2e 78 |/there.i|s.only.x| |00000780| 75 6c 22 29 3b 0a 40 6e | 61 6d 65 73 70 61 63 65 |ul");.@n|amespace| |00000790| 20 68 74 6d 6c 20 75 72 | 6c 28 22 68 74 74 70 3a | html ur|l("http:| |000007a0| 2f 2f 77 77 77 2e 77 33 | 2e 6f 72 67 2f 31 39 39 |//www.w3|.org/199| |000007b0| 39 2f 78 68 74 6d 6c 22 | 29 3b 0a 0a 23 73 68 65 |9/xhtml"|);..#she| |000007c0| 65 74 49 6e 66 6f 54 61 | 62 50 61 6e 65 6c 54 69 |etInfoTa|bPanelTi| |000007d0| 74 6c 65 2c 20 2e 74 69 | 74 6c 65 4c 61 62 65 6c |tle, .ti|tleLabel| |000007e0| 20 7b 0a 20 20 66 6f 6e | 74 2d 77 65 69 67 68 74 | {. fon|t-weight| |000007f0| 3a 20 62 6f 6c 64 3b 0a | 20 20 66 6f 6e 74 2d 73 |: bold;.| font-s| |00000800| 69 7a 65 3a 20 6c 61 72 | 67 65 72 3b 0a 7d 0a 0a |ize: lar|ger;.}..| |00000810| 2e 62 61 6e 67 49 6d 70 | 6f 72 74 61 6e 74 20 7b |.bangImp|ortant {| |00000820| 0a 20 20 63 6f 6c 6f 72 | 3a 20 72 65 64 3b 0a 7d |. color|: red;.}| |00000830| 0a 0a 68 74 6d 6c 7c 70 | 23 62 72 6f 77 6e 46 6f |..html|p|#brownFo| |00000840| 78 4c 61 62 65 6c 20 7b | 0a 20 20 62 6f 72 64 65 |xLabel {|. borde| |00000850| 72 3a 20 31 70 78 20 73 | 6f 6c 69 64 20 62 6c 61 |r: 1px s|olid bla| |00000860| 63 6b 3b 0a 20 20 6d 61 | 72 67 69 6e 3a 20 30 70 |ck;. ma|rgin: 0p| |00000870| 78 3b 0a 20 20 70 61 64 | 64 69 6e 67 3a 20 32 70 |x;. pad|ding: 2p| |00000880| 78 3b 0a 20 20 6f 76 65 | 72 66 6c 6f 77 3a 20 2d |x;. ove|rflow: -| |00000890| 6d 6f 7a 2d 68 69 64 64 | 65 6e 2d 75 6e 73 63 72 |moz-hidd|en-unscr| |000008a0| 6f 6c 6c 61 62 6c 65 3b | 0a 20 20 68 65 69 67 68 |ollable;|. heigh| |000008b0| 74 3a 20 37 30 70 78 3b | 0a 20 20 6d 61 78 2d 68 |t: 70px;|. max-h| |000008c0| 65 69 67 68 74 3a 20 37 | 30 70 78 3b 0a 20 20 6c |eight: 7|0px;. l| |000008d0| 69 6e 65 2d 68 65 69 67 | 68 74 3a 20 37 30 70 78 |ine-heig|ht: 70px| |000008e0| 3b 0a 20 20 77 69 64 74 | 68 3a 20 31 30 30 25 3b |;. widt|h: 100%;| |000008f0| 0a 20 20 6d 61 78 2d 77 | 69 64 74 68 3a 20 31 30 |. max-w|idth: 10| |00000900| 30 25 3b 0a 20 20 62 61 | 63 6b 67 72 6f 75 6e 64 |0%;. ba|ckground| |00000910| 2d 63 6f 6c 6f 72 3a 20 | 77 68 69 74 65 3b 0a 20 |-color: |white;. | |00000920| 20 74 65 78 74 2d 61 6c | 69 67 6e 3a 20 63 65 6e | text-al|ign: cen| |00000930| 74 65 72 3b 0a 20 20 66 | 6f 6e 74 2d 73 69 7a 65 |ter;. f|ont-size| |00000940| 3a 20 31 32 70 74 3b 0a | 20 20 66 6f 6e 74 2d 73 |: 12pt;.| font-s| |00000950| 74 79 6c 65 3a 20 6e 6f | 72 6d 61 6c 3b 0a 20 20 |tyle: no|rmal;. | |00000960| 74 65 78 74 2d 74 72 61 | 6e 73 66 6f 72 6d 3a 20 |text-tra|nsform: | |00000970| 6e 6f 6e 65 3b 0a 20 20 | 77 68 69 74 65 2d 73 70 |none;. |white-sp| |00000980| 61 63 65 20 3a 20 6e 6f | 77 72 61 70 3b 0a 7d 0a |ace : no|wrap;.}.| |00000990| 0a 74 72 65 65 63 68 69 | 6c 64 72 65 6e 3a 3a 2d |.treechi|ldren::-| |000009a0| 6d 6f 7a 2d 74 72 65 65 | 2d 63 65 6c 6c 2d 74 65 |moz-tree|-cell-te| |000009b0| 78 74 28 65 78 74 65 72 | 6e 61 6c 29 20 7b 0a 20 |xt(exter|nal) {. | |000009c0| 20 20 20 66 6f 6e 74 2d | 73 74 79 6c 65 3a 20 69 | font-|style: i| |000009d0| 74 61 6c 69 63 20 21 20 | 69 6d 70 6f 72 74 61 6e |talic ! |importan| |000009e0| 74 3b 0a 7d 0a 0a 2f 2a | 0a 73 70 69 6e 62 75 74 |t;.}../*|.spinbut| |000009f0| 74 6f 6e 73 20 69 6d 61 | 67 65 20 7b 20 62 6f 72 |tons ima|ge { bor| |00000a00| 64 65 72 3a 20 73 6f 6c | 69 64 20 74 68 69 6e 20 |der: sol|id thin | |00000a10| 62 6c 61 63 6b 3b 20 70 | 61 64 64 69 6e 67 3a 20 |black; p|adding: | |00000a20| 32 70 78 3b 20 2d 6d 6f | 7a 2d 62 6f 72 64 65 72 |2px; -mo|z-border| |00000a30| 2d 72 61 64 69 75 73 3a | 20 33 70 78 20 7d 0a 0a |-radius:| 3px }..| |00000a40| 73 70 69 6e 62 75 74 74 | 6f 6e 73 20 69 6d 61 67 |spinbutt|ons imag| |00000a50| 65 3a 68 6f 76 65 72 3a | 61 63 74 69 76 65 20 7b |e:hover:|active {| |00000a60| 0a 20 20 20 62 61 63 6b | 67 72 6f 75 6e 64 2d 63 |. back|ground-c| |00000a70| 6f 6c 6f 72 3a 20 23 39 | 30 41 31 42 33 3b 0a 20 |olor: #9|0A1B3;. | |00000a80| 20 20 63 6f 6c 6f 72 3a | 20 23 46 46 46 46 46 46 | color:| #FFFFFF| |00000a90| 3b 0a 20 7d 0a 2a 2f 50 | 4b 03 04 0a 00 00 00 00 |;. }.*/P|K.......| |00000aa0| 00 95 51 69 30 d0 7e db | d8 e7 fd 00 00 e7 fd 00 |..Qi0.~.|........| |00000ab0| 00 1e 00 15 00 63 6f 6e | 74 65 6e 74 2f 63 61 73 |.....con|tent/cas| |00000ac0| 63 61 64 65 73 2f 45 64 | 43 73 73 50 72 6f 70 73 |cades/Ed|CssProps| |00000ad0| 2e 6a 73 55 54 09 00 03 | 8a 8a 4d 40 75 f8 5b 41 |.jsUT...|..M@u.[A| |00000ae0| 55 78 04 00 eb 03 01 02 | 2f 2a 20 2a 2a 2a 2a 2a |Ux......|/* *****| |00000af0| 20 42 45 47 49 4e 20 4c | 49 43 45 4e 53 45 20 42 | BEGIN L|ICENSE B| |00000b00| 4c 4f 43 4b 20 2a 2a 2a | 2a 2a 0a 20 2a 20 56 65 |LOCK ***|**. * Ve| |00000b10| 72 73 69 6f 6e 3a 20 4d | 50 4c 20 31 2e 31 2f 47 |rsion: M|PL 1.1/G| |00000b20| 50 4c 20 32 2e 30 2f 4c | 47 50 4c 20 32 2e 31 0a |PL 2.0/L|GPL 2.1.| |00000b30| 20 2a 0a 20 2a 20 54 68 | 65 20 63 6f 6e 74 65 6e | *. * Th|e conten| |00000b40| 74 73 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 20 |ts of th|is file | |00000b50| 61 72 65 20 73 75 62 6a | 65 63 74 20 74 6f 20 74 |are subj|ect to t| |00000b60| 68 65 20 4d 6f 7a 69 6c | 6c 61 20 50 75 62 6c 69 |he Mozil|la Publi| |00000b70| 63 20 4c 69 63 65 6e 73 | 65 20 56 65 72 73 69 6f |c Licens|e Versio| |00000b80| 6e 0a 20 2a 20 31 2e 31 | 20 28 74 68 65 20 22 4c |n. * 1.1| (the "L| |00000b90| 69 63 65 6e 73 65 22 29 | 3b 20 79 6f 75 20 6d 61 |icense")|; you ma| |00000ba0| 79 20 6e 6f 74 20 75 73 | 65 20 74 68 69 73 20 66 |y not us|e this f| |00000bb0| 69 6c 65 20 65 78 63 65 | 70 74 20 69 6e 20 63 6f |ile exce|pt in co| |00000bc0| 6d 70 6c 69 61 6e 63 65 | 20 77 69 74 68 0a 20 2a |mpliance| with. *| |00000bd0| 20 74 68 65 20 4c 69 63 | 65 6e 73 65 2e 20 59 6f | the Lic|ense. Yo| |00000be0| 75 20 6d 61 79 20 6f 62 | 74 61 69 6e 20 61 20 63 |u may ob|tain a c| |00000bf0| 6f 70 79 20 6f 66 20 74 | 68 65 20 4c 69 63 65 6e |opy of t|he Licen| |00000c00| 73 65 20 61 74 0a 20 2a | 20 68 74 74 70 3a 2f 2f |se at. *| http://| |00000c10| 77 77 77 2e 6d 6f 7a 69 | 6c 6c 61 2e 6f 72 67 2f |www.mozi|lla.org/| |00000c20| 4d 50 4c 2f 0a 20 2a 0a | 20 2a 20 53 6f 66 74 77 |MPL/. *.| * Softw| |00000c30| 61 72 65 20 64 69 73 74 | 72 69 62 75 74 65 64 20 |are dist|ributed | |00000c40| 75 6e 64 65 72 20 74 68 | 65 20 4c 69 63 65 6e 73 |under th|e Licens| |00000c50| 65 20 69 73 20 64 69 73 | 74 72 69 62 75 74 65 64 |e is dis|tributed| |00000c60| 20 6f 6e 20 61 6e 20 22 | 41 53 20 49 53 22 20 62 | on an "|AS IS" b| |00000c70| 61 73 69 73 2c 0a 20 2a | 20 57 49 54 48 4f 55 54 |asis,. *| WITHOUT| |00000c80| 20 57 41 52 52 41 4e 54 | 59 20 4f 46 20 41 4e 59 | WARRANT|Y OF ANY| |00000c90| 20 4b 49 4e 44 2c 20 65 | 69 74 68 65 72 20 65 78 | KIND, e|ither ex| |00000ca0| 70 72 65 73 73 20 6f 72 | 20 69 6d 70 6c 69 65 64 |press or| implied| |00000cb0| 2e 20 53 65 65 20 74 68 | 65 20 4c 69 63 65 6e 73 |. See th|e Licens| |00000cc0| 65 0a 20 2a 20 66 6f 72 | 20 74 68 65 20 73 70 65 |e. * for| the spe| |00000cd0| 63 69 66 69 63 20 6c 61 | 6e 67 75 61 67 65 20 67 |cific la|nguage g| |00000ce0| 6f 76 65 72 6e 69 6e 67 | 20 72 69 67 68 74 73 20 |overning| rights | |00000cf0| 61 6e 64 20 6c 69 6d 69 | 74 61 74 69 6f 6e 73 20 |and limi|tations | |00000d00| 75 6e 64 65 72 20 74 68 | 65 0a 20 2a 20 4c 69 63 |under th|e. * Lic| |00000d10| 65 6e 73 65 2e 0a 20 2a | 0a 20 2a 20 54 68 65 20 |ense.. *|. * The | |00000d20| 4f 72 69 67 69 6e 61 6c | 20 43 6f 64 65 20 69 73 |Original| Code is| |00000d30| 20 43 61 53 63 61 64 65 | 53 2c 20 61 20 73 74 79 | CaScade|S, a sty| |00000d40| 6c 65 73 68 65 65 74 20 | 65 64 69 74 6f 72 20 66 |lesheet |editor f| |00000d50| 6f 72 20 43 6f 6d 70 6f | 73 65 72 2e 0a 20 2a 0a |or Compo|ser.. *.| |00000d60| 20 2a 20 54 68 65 20 49 | 6e 69 74 69 61 6c 20 44 | * The I|nitial D| |00000d70| 65 76 65 6c 6f 70 65 72 | 20 6f 66 20 74 68 65 20 |eveloper| of the | |00000d80| 4f 72 69 67 69 6e 61 6c | 20 43 6f 64 65 20 69 73 |Original| Code is| |00000d90| 0a 20 2a 20 44 61 6e 69 | 65 6c 20 47 6c 61 7a 6d |. * Dani|el Glazm| |00000da0| 61 6e 2e 0a 20 2a 20 50 | 6f 72 74 69 6f 6e 73 20 |an.. * P|ortions | |00000db0| 63 72 65 61 74 65 64 20 | 62 79 20 74 68 65 20 49 |created |by the I| |00000dc0| 6e 69 74 69 61 6c 20 44 | 65 76 65 6c 6f 70 65 72 |nitial D|eveloper| |00000dd0| 20 61 72 65 20 43 6f 70 | 79 72 69 67 68 74 20 28 | are Cop|yright (| |00000de0| 43 29 20 32 30 30 32 0a | 20 2a 20 74 68 65 20 49 |C) 2002.| * the I| |00000df0| 6e 69 74 69 61 6c 20 44 | 65 76 65 6c 6f 70 65 72 |nitial D|eveloper| |00000e00| 2e 20 41 6c 6c 20 52 69 | 67 68 74 73 20 52 65 73 |. All Ri|ghts Res| |00000e10| 65 72 76 65 64 2e 0a 20 | 2a 0a 20 2a 20 43 6f 6e |erved.. |*. * Con| |00000e20| 74 72 69 62 75 74 6f 72 | 28 73 29 3a 0a 20 2a 20 |tributor|(s):. * | |00000e30| 20 20 4f 72 69 67 69 6e | 61 6c 20 61 75 74 68 6f | Origin|al autho| |00000e40| 72 3a 20 44 61 6e 69 65 | 6c 20 47 6c 61 7a 6d 61 |r: Danie|l Glazma| |00000e50| 6e 20 3c 64 61 6e 69 65 | 6c 40 67 6c 61 7a 6d 61 |n <danie|l@glazma| |00000e60| 6e 2e 6f 72 67 3e 0a 20 | 2a 0a 20 2a 20 41 6c 74 |n.org>. |*. * Alt| |00000e70| 65 72 6e 61 74 69 76 65 | 6c 79 2c 20 74 68 65 20 |ernative|ly, the | |00000e80| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 69 73 |contents| of this| |00000e90| 20 66 69 6c 65 20 6d 61 | 79 20 62 65 20 75 73 65 | file ma|y be use| |00000ea0| 64 20 75 6e 64 65 72 20 | 74 68 65 20 74 65 72 6d |d under |the term| |00000eb0| 73 20 6f 66 0a 20 2a 20 | 65 69 74 68 65 72 20 74 |s of. * |either t| |00000ec0| 68 65 20 47 4e 55 20 47 | 65 6e 65 72 61 6c 20 50 |he GNU G|eneral P| |00000ed0| 75 62 6c 69 63 20 4c 69 | 63 65 6e 73 65 20 56 65 |ublic Li|cense Ve| |00000ee0| 72 73 69 6f 6e 20 32 20 | 6f 72 20 6c 61 74 65 72 |rsion 2 |or later| |00000ef0| 20 28 74 68 65 20 22 47 | 50 4c 22 29 2c 20 6f 72 | (the "G|PL"), or| |00000f00| 0a 20 2a 20 74 68 65 20 | 47 4e 55 20 4c 65 73 73 |. * the |GNU Less| |00000f10| 65 72 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |er Gener|al Publi| |00000f20| 63 20 4c 69 63 65 6e 73 | 65 20 56 65 72 73 69 6f |c Licens|e Versio| |00000f30| 6e 20 32 2e 31 20 6f 72 | 20 6c 61 74 65 72 20 28 |n 2.1 or| later (| |00000f40| 74 68 65 20 22 4c 47 50 | 4c 22 29 2c 0a 20 2a 20 |the "LGP|L"),. * | |00000f50| 69 6e 20 77 68 69 63 68 | 20 63 61 73 65 20 74 68 |in which| case th| |00000f60| 65 20 70 72 6f 76 69 73 | 69 6f 6e 73 20 6f 66 20 |e provis|ions of | |00000f70| 74 68 65 20 47 50 4c 20 | 6f 72 20 74 68 65 20 4c |the GPL |or the L| |00000f80| 47 50 4c 20 61 72 65 20 | 61 70 70 6c 69 63 61 62 |GPL are |applicab| |00000f90| 6c 65 20 69 6e 73 74 65 | 61 64 0a 20 2a 20 6f 66 |le inste|ad. * of| |00000fa0| 20 74 68 6f 73 65 20 61 | 62 6f 76 65 2e 20 49 66 | those a|bove. If| |00000fb0| 20 79 6f 75 20 77 69 73 | 68 20 74 6f 20 61 6c 6c | you wis|h to all| |00000fc0| 6f 77 20 75 73 65 20 6f | 66 20 79 6f 75 72 20 76 |ow use o|f your v| |00000fd0| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 69 73 20 66 |ersion o|f this f| |00000fe0| 69 6c 65 20 6f 6e 6c 79 | 0a 20 2a 20 75 6e 64 65 |ile only|. * unde| |00000ff0| 72 20 74 68 65 20 74 65 | 72 6d 73 20 6f 66 20 65 |r the te|rms of e| |00001000| 69 74 68 65 72 20 74 68 | 65 20 47 50 4c 20 6f 72 |ither th|e GPL or| |00001010| 20 74 68 65 20 4c 47 50 | 4c 2c 20 61 6e 64 20 6e | the LGP|L, and n| |00001020| 6f 74 20 74 6f 20 61 6c | 6c 6f 77 20 6f 74 68 65 |ot to al|low othe| |00001030| 72 73 20 74 6f 0a 20 2a | 20 75 73 65 20 79 6f 75 |rs to. *| use you| |00001040| 72 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 69 |r versio|n of thi| |00001050| 73 20 66 69 6c 65 20 75 | 6e 64 65 72 20 74 68 65 |s file u|nder the| |00001060| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 4d 50 | terms o|f the MP| |00001070| 4c 2c 20 69 6e 64 69 63 | 61 74 65 20 79 6f 75 72 |L, indic|ate your| |00001080| 0a 20 2a 20 64 65 63 69 | 73 69 6f 6e 20 62 79 20 |. * deci|sion by | |00001090| 64 65 6c 65 74 69 6e 67 | 20 74 68 65 20 70 72 6f |deleting| the pro| |000010a0| 76 69 73 69 6f 6e 73 20 | 61 62 6f 76 65 20 61 6e |visions |above an| |000010b0| 64 20 72 65 70 6c 61 63 | 65 20 74 68 65 6d 20 77 |d replac|e them w| |000010c0| 69 74 68 20 74 68 65 20 | 6e 6f 74 69 63 65 0a 20 |ith the |notice. | |000010d0| 2a 20 61 6e 64 20 6f 74 | 68 65 72 20 70 72 6f 76 |* and ot|her prov| |000010e0| 69 73 69 6f 6e 73 20 72 | 65 71 75 69 72 65 64 20 |isions r|equired | |000010f0| 62 79 20 74 68 65 20 47 | 50 4c 20 6f 72 20 74 68 |by the G|PL or th| |00001100| 65 20 4c 47 50 4c 2e 20 | 49 66 20 79 6f 75 20 64 |e LGPL. |If you d| |00001110| 6f 20 6e 6f 74 20 64 65 | 6c 65 74 65 0a 20 2a 20 |o not de|lete. * | |00001120| 74 68 65 20 70 72 6f 76 | 69 73 69 6f 6e 73 20 61 |the prov|isions a| |00001130| 62 6f 76 65 2c 20 61 20 | 72 65 63 69 70 69 65 6e |bove, a |recipien| |00001140| 74 20 6d 61 79 20 75 73 | 65 20 79 6f 75 72 20 76 |t may us|e your v| |00001150| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 69 73 20 66 |ersion o|f this f| |00001160| 69 6c 65 20 75 6e 64 65 | 72 0a 20 2a 20 74 68 65 |ile unde|r. * the| |00001170| 20 74 65 72 6d 73 20 6f | 66 20 61 6e 79 20 6f 6e | terms o|f any on| |00001180| 65 20 6f 66 20 74 68 65 | 20 4d 50 4c 2c 20 74 68 |e of the| MPL, th| |00001190| 65 20 47 50 4c 20 6f 72 | 20 74 68 65 20 4c 47 50 |e GPL or| the LGP| |000011a0| 4c 2e 0a 20 2a 0a 20 2a | 20 2a 2a 2a 2a 2a 20 45 |L.. *. *| ***** E| |000011b0| 4e 44 20 4c 49 43 45 4e | 53 45 20 42 4c 4f 43 4b |ND LICEN|SE BLOCK| |000011c0| 20 2a 2a 2a 2a 2a 20 2a | 2f 0a 0a 63 6f 6e 73 74 | ***** *|/..const| |000011d0| 20 53 48 45 45 54 20 20 | 20 20 20 20 20 20 3d 20 | SHEET | = | |000011e0| 31 3b 0a 63 6f 6e 73 74 | 20 53 54 59 4c 45 5f 52 |1;.const| STYLE_R| |000011f0| 55 4c 45 20 20 20 3d 20 | 32 3b 0a 63 6f 6e 73 74 |ULE = |2;.const| |00001200| 20 49 4d 50 4f 52 54 5f | 52 55 4c 45 20 20 3d 20 | IMPORT_|RULE = | |00001210| 33 3b 0a 63 6f 6e 73 74 | 20 4d 45 44 49 41 5f 52 |3;.const| MEDIA_R| |00001220| 55 4c 45 20 20 20 3d 20 | 34 3b 0a 63 6f 6e 73 74 |ULE = |4;.const| |00001230| 20 43 48 41 52 53 45 54 | 5f 52 55 4c 45 20 3d 20 | CHARSET|_RULE = | |00001240| 35 3b 0a 63 6f 6e 73 74 | 20 50 41 47 45 5f 52 55 |5;.const| PAGE_RU| |00001250| 4c 45 20 20 20 20 3d 20 | 36 3b 0a 63 6f 6e 73 74 |LE = |6;.const| |00001260| 20 4f 57 4e 45 52 5f 4e | 4f 44 45 20 20 20 3d 20 | OWNER_N|ODE = | |00001270| 37 3b 0a 0a 2f 2f 20 63 | 6f 6e 73 74 20 43 4f 4d |7;..// c|onst COM| |00001280| 50 41 54 49 42 49 4c 49 | 54 59 5f 54 41 42 20 3d |PATIBILI|TY_TAB =| |00001290| 20 31 3b 0a 63 6f 6e 73 | 74 20 47 45 4e 45 52 41 | 1;.cons|t GENERA| |000012a0| 4c 5f 54 41 42 20 20 20 | 20 20 20 20 3d 20 32 3b |L_TAB | = 2;| |000012b0| 0a 63 6f 6e 73 74 20 54 | 45 58 54 5f 54 41 42 20 |.const T|EXT_TAB | |000012c0| 20 20 20 20 20 20 20 20 | 20 3d 20 33 3b 0a 63 6f | | = 3;.co| |000012d0| 6e 73 74 20 42 41 43 4b | 47 52 4f 55 4e 44 5f 54 |nst BACK|GROUND_T| |000012e0| 41 42 20 20 20 20 3d 20 | 34 3b 0a 63 6f 6e 73 74 |AB = |4;.const| |000012f0| 20 42 4f 52 44 45 52 5f | 54 41 42 20 20 20 20 20 | BORDER_|TAB | |00001300| 20 20 20 3d 20 35 3b 0a | 63 6f 6e 73 74 20 42 4f | = 5;.|const BO| |00001310| 58 5f 54 41 42 20 20 20 | 20 20 20 20 20 20 20 20 |X_TAB | | |00001320| 3d 20 36 3b 0a 63 6f 6e | 73 74 20 41 55 52 41 4c |= 6;.con|st AURAL| |00001330| 5f 54 41 42 20 20 20 20 | 20 20 20 20 20 3d 20 37 |_TAB | = 7| |00001340| 3b 0a 0a 63 6f 6e 73 74 | 20 47 45 4e 45 52 49 43 |;..const| GENERIC| |00001350| 5f 53 45 4c 45 43 54 4f | 52 20 20 20 20 20 20 3d |_SELECTO|R =| |00001360| 20 30 3b 0a 63 6f 6e 73 | 74 20 54 59 50 45 5f 45 | 0;.cons|t TYPE_E| |00001370| 4c 45 4d 45 4e 54 5f 53 | 45 4c 45 43 54 4f 52 20 |LEMENT_S|ELECTOR | |00001380| 3d 20 31 3b 0a 63 6f 6e | 73 74 20 43 4c 41 53 53 |= 1;.con|st CLASS| |00001390| 5f 53 45 4c 45 43 54 4f | 52 20 20 20 20 20 20 20 |_SELECTO|R | |000013a0| 20 3d 20 32 3b 0a 0a 63 | 6f 6e 73 74 20 6b 41 73 | = 2;..c|onst kAs| |000013b0| 79 6e 63 54 69 6d 65 6f | 75 74 20 3d 20 31 35 30 |yncTimeo|ut = 150| |000013c0| 30 3b 20 2f 2f 20 31 2e | 35 20 73 65 63 6f 6e 64 |0; // 1.|5 second| |000013d0| 0a 0a 76 61 72 20 6f 62 | 6a 65 63 74 73 41 72 72 |..var ob|jectsArr| |000013e0| 61 79 20 3d 20 6e 75 6c | 6c 3b 0a 76 61 72 20 67 |ay = nul|l;.var g| |000013f0| 54 69 6d 65 72 49 44 3b | 0a 76 61 72 20 67 41 73 |TimerID;|.var gAs| |00001400| 79 6e 63 4c 6f 61 64 69 | 6e 67 54 69 6d 65 72 49 |yncLoadi|ngTimerI| |00001410| 44 3b 0a 0a 2f 2f 20 6e | 65 65 64 65 64 20 66 6f |D;..// n|eeded fo| |00001420| 72 20 63 6f 6d 6d 6f 6e | 43 73 73 50 72 6f 70 73 |r common|CssProps| |00001430| 2e 6a 73 0a 76 61 72 20 | 67 48 61 76 65 44 6f 63 |.js.var |gHaveDoc| |00001440| 75 6d 65 6e 74 55 72 6c | 20 3d 20 66 61 6c 73 65 |umentUrl| = false| |00001450| 3b 0a 0a 76 61 72 20 67 | 49 6e 73 65 72 74 49 6e |;..var g|InsertIn| |00001460| 64 65 78 20 3d 20 2d 31 | 3b 0a 0a 2f 2f 20 2a 20 |dex = -1|;..// * | |00001470| 64 69 61 6c 6f 67 20 69 | 6e 69 74 69 61 6c 69 7a |dialog i|nitializ| |00001480| 61 74 69 6f 6e 20 63 6f | 64 65 0a 66 75 6e 63 74 |ation co|de.funct| |00001490| 69 6f 6e 20 53 74 61 72 | 74 75 70 28 29 0a 7b 0a |ion Star|tup().{.| |000014a0| 20 20 2f 2f 20 61 72 65 | 20 77 65 20 69 6e 20 61 | // are| we in a| |000014b0| 20 70 72 65 2d 31 2e 33 | 20 4d 6f 7a 69 6c 6c 61 | pre-1.3| Mozilla| |000014c0| 20 3f 0a 20 20 69 66 20 | 28 74 79 70 65 6f 66 20 | ?. if |(typeof | |000014d0| 77 69 6e 64 6f 77 2e 49 | 6e 69 74 45 64 69 74 6f |window.I|nitEdito| |000014e0| 72 53 68 65 6c 6c 20 3d | 3d 20 22 66 75 6e 63 74 |rShell =|= "funct| |000014f0| 69 6f 6e 22 29 20 7b 0a | 20 20 20 20 2f 2f 20 79 |ion") {.| // y| |00001500| 65 73 2c 20 73 6f 20 6c | 65 74 27 73 20 67 65 74 |es, so l|et's get| |00001510| 20 61 6e 20 65 64 69 74 | 6f 72 73 68 65 6c 6c 0a | an edit|orshell.| |00001520| 20 20 20 20 69 66 20 28 | 21 49 6e 69 74 45 64 69 | if (|!InitEdi| |00001530| 74 6f 72 53 68 65 6c 6c | 28 29 29 0a 20 20 20 20 |torShell|()). | |00001540| 20 20 72 65 74 75 72 6e | 3b 0a 20 20 7d 0a 20 20 | return|;. }. | |00001550| 65 6c 73 65 20 69 66 20 | 28 74 79 70 65 6f 66 20 |else if |(typeof | |00001560| 77 69 6e 64 6f 77 2e 47 | 65 74 43 75 72 72 65 6e |window.G|etCurren| |00001570| 74 45 64 69 74 6f 72 20 | 21 3d 20 22 66 75 6e 63 |tEditor |!= "func| |00001580| 74 69 6f 6e 22 20 7c 7c | 20 21 47 65 74 43 75 72 |tion" ||| !GetCur| |00001590| 72 65 6e 74 45 64 69 74 | 6f 72 28 29 29 20 7b 0a |rentEdit|or()) {.| |000015a0| 20 20 20 20 77 69 6e 64 | 6f 77 2e 63 6c 6f 73 65 | wind|ow.close| |000015b0| 28 29 3b 0a 20 20 20 20 | 72 65 74 75 72 6e 3b 0a |();. |return;.| |000015c0| 20 20 7d 0a 0a 20 20 2f | 2f 20 67 44 69 61 6c 6f | }.. /|/ gDialo| |000015d0| 67 20 69 73 20 64 65 63 | 6c 61 72 65 64 20 69 6e |g is dec|lared in| |000015e0| 20 45 64 44 69 61 6c 6f | 67 43 6f 6d 6d 6f 6e 2e | EdDialo|gCommon.| |000015f0| 6a 73 0a 0a 20 20 67 44 | 69 61 6c 6f 67 2e 73 65 |js.. gD|ialog.se| |00001600| 6c 65 63 74 69 6f 6e 42 | 61 73 65 64 20 3d 20 66 |lectionB|ased = f| |00001610| 61 6c 73 65 3b 0a 0a 20 | 20 2f 2f 20 53 65 74 20 |alse;.. | // Set | |00001620| 63 6f 6d 6d 6f 6e 6c 79 | 2d 75 73 65 64 20 77 69 |commonly|-used wi| |00001630| 64 67 65 74 73 20 6c 69 | 6b 65 20 74 68 69 73 3a |dgets li|ke this:| |00001640| 0a 20 20 67 44 69 61 6c | 6f 67 2e 73 65 6c 65 63 |. gDial|og.selec| |00001650| 74 65 64 54 61 62 20 3d | 20 54 45 58 54 5f 54 41 |tedTab =| TEXT_TA| |00001660| 42 3b 0a 20 20 67 44 69 | 61 6c 6f 67 2e 73 68 65 |B;. gDi|alog.she| |00001670| 65 74 73 54 72 65 65 63 | 68 69 6c 64 72 65 6e 20 |etsTreec|hildren | |00001680| 20 20 20 20 20 20 20 20 | 20 20 20 3d 20 64 6f 63 | | = doc| |00001690| 75 6d 65 6e 74 2e 67 65 | 74 45 6c 65 6d 65 6e 74 |ument.ge|tElement| |000016a0| 42 79 49 64 28 22 73 74 | 79 6c 65 73 68 65 65 74 |ById("st|ylesheet| |000016b0| 73 54 72 65 65 22 29 3b | 0a 20 20 67 44 69 61 6c |sTree");|. gDial| |000016c0| 6f 67 2e 73 68 65 65 74 | 73 54 72 65 65 20 20 20 |og.sheet|sTree | |000016d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000016e0| 20 3d 20 64 6f 63 75 6d | 65 6e 74 2e 67 65 74 45 | = docum|ent.getE| |000016f0| 6c 65 6d 65 6e 74 42 79 | 49 64 28 22 73 68 65 65 |lementBy|Id("shee| |00001700| 74 73 54 72 65 65 22 29 | 3b 0a 20 20 67 44 69 61 |tsTree")|;. gDia| |00001710| 6c 6f 67 2e 73 68 65 65 | 74 49 6e 66 6f 54 61 62 |log.shee|tInfoTab| |00001720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001730| 20 20 3d 20 64 6f 63 75 | 6d 65 6e 74 2e 67 65 74 | = docu|ment.get| |00001740| 45 6c 65 6d 65 6e 74 42 | 79 49 64 28 22 73 68 65 |ElementB|yId("she| |00001750| 65 74 49 6e 66 6f 54 61 | 62 22 29 3b 0a 20 20 67 |etInfoTa|b");. g| |00001760| 44 69 61 6c 6f 67 2e 61 | 74 69 6d 70 6f 72 74 42 |Dialog.a|timportB| |00001770| 75 74 74 6f 6e 20 20 20 | 20 20 20 20 20 20 20 20 |utton | | |00001780| 20 20 20 20 20 3d 20 64 | 6f 63 75 6d 65 6e 74 2e | = d|ocument.| |00001790| 67 65 74 45 6c 65 6d 65 | 6e 74 42 79 49 64 28 22 |getEleme|ntById("| |000017a0| 61 74 69 6d 70 6f 72 74 | 42 75 74 74 6f 6e 22 29 |atimport|Button")| |000017b0| 3b 0a 20 20 67 44 69 61 | 6c 6f 67 2e 61 74 6d 65 |;. gDia|log.atme| |000017c0| 64 69 61 42 75 74 74 6f | 6e 20 20 20 20 20 20 20 |diaButto|n | |000017d0| 20 20 20 20 20 20 20 20 | 20 20 3d 20 64 6f 63 75 | | = docu| |000017e0| 6d 65 6e 74 2e 67 65 74 | 45 6c 65 6d 65 6e 74 42 |ment.get|ElementB| |000017f0| 79 49 64 28 22 61 74 6d | 65 64 69 61 42 75 74 74 |yId("atm|ediaButt| |00001800| 6f 6e 22 29 3b 0a 20 20 | 67 44 69 61 6c 6f 67 2e |on");. |gDialog.| |00001810| 6c 69 6e 6b 42 75 74 74 | 6f 6e 20 20 20 20 20 20 |linkButt|on | |00001820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3d 20 | | = | |00001830| 64 6f 63 75 6d 65 6e 74 | 2e 67 65 74 45 6c 65 6d |document|.getElem| |00001840| 65 6e 74 42 79 49 64 28 | 22 6c 69 6e 6b 42 75 74 |entById(|"linkBut| |00001850| 74 6f 6e 22 29 3b 0a 20 | 20 67 44 69 61 6c 6f 67 |ton");. | gDialog| |00001860| 2e 73 74 79 6c 65 42 75 | 74 74 6f 6e 20 20 20 20 |.styleBu|tton | |00001870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3d | | =| |00001880| 20 64 6f 63 75 6d 65 6e | 74 2e 67 65 74 45 6c 65 | documen|t.getEle| |00001890| 6d 65 6e 74 42 79 49 64 | 28 22 73 74 79 6c 65 42 |mentById|("styleB| |000018a0| 75 74 74 6f 6e 22 29 3b | 0a 20 20 67 44 69 61 6c |utton");|. gDial| |000018b0| 6f 67 2e 72 75 6c 65 42 | 75 74 74 6f 6e 20 20 20 |og.ruleB|utton | |000018c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000018d0| 20 3d 20 64 6f 63 75 6d | 65 6e 74 2e 67 65 74 45 | = docum|ent.getE| |000018e0| 6c 65 6d 65 6e 74 42 79 | 49 64 28 22 72 75 6c 65 |lementBy|Id("rule| |000018f0| 42 75 74 74 6f 6e 22 29 | 3b 0a 20 20 67 44 69 61 |Button")|;. gDia| |00001900| 6c 6f 67 2e 72 65 6d 6f | 76 65 42 75 74 74 6f 6e |log.remo|veButton| |00001910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001920| 20 20 3d 20 64 6f 63 75 | 6d 65 6e 74 2e 67 65 74 | = docu|ment.get| |00001930| 45 6c 65 6d 65 6e 74 42 | 79 49 64 28 22 72 65 6d |ElementB|yId("rem| |00001940| 6f 76 65 42 75 74 74 6f | 6e 22 29 3b 0a 20 20 67 |oveButto|n");. g| |00001950| 44 69 61 6c 6f 67 2e 75 | 70 42 75 74 74 6f 6e 20 |Dialog.u|pButton | |00001960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001970| 20 20 20 20 20 3d 20 64 | 6f 63 75 6d 65 6e 74 2e | = d|ocument.| |00001980| 67 65 74 45 6c 65 6d 65 | 6e 74 42 79 49 64 28 22 |getEleme|ntById("| |00001990| 75 70 42 75 74 74 6f 6e | 22 29 3b 0a 20 20 67 44 |upButton|");. gD| |000019a0| 69 61 6c 6f 67 2e 64 6f | 77 6e 42 75 74 74 6f 6e |ialog.do|wnButton| |000019b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000019c0| 20 20 20 20 3d 20 64 6f | 63 75 6d 65 6e 74 2e 67 | = do|cument.g| |000019d0| 65 74 45 6c 65 6d 65 6e | 74 42 79 49 64 28 22 64 |etElemen|tById("d| |000019e0| 6f 77 6e 42 75 74 74 6f | 6e 22 29 3b 0a 0a 20 20 |ownButto|n");.. | |000019f0| 67 44 69 61 6c 6f 67 2e | 73 65 6c 65 63 74 65 64 |gDialog.|selected| |00001a00| 54 61 62 20 3d 20 47 45 | 4e 45 52 41 4c 5f 54 41 |Tab = GE|NERAL_TA| |00001a10| 42 3b 0a 20 20 67 44 69 | 61 6c 6f 67 2e 73 68 65 |B;. gDi|alog.she| |00001a20| 65 74 49 6e 66 6f 54 61 | 62 50 61 6e 65 6c 54 69 |etInfoTa|bPanelTi| |00001a30| 74 6c 65 20 20 20 20 20 | 20 20 20 3d 20 64 6f 63 |tle | = doc| |00001a40| 75 6d 65 6e 74 2e 67 65 | 74 45 6c 65 6d 65 6e 74 |ument.ge|tElement| |00001a50| 42 79 49 64 28 22 73 68 | 65 65 74 49 6e 66 6f 54 |ById("sh|eetInfoT| |00001a60| 61 62 50 61 6e 65 6c 54 | 69 74 6c 65 22 29 3b 0a |abPanelT|itle");.| |00001a70| 20 20 67 44 69 61 6c 6f | 67 2e 74 65 78 74 54 61 | gDialo|g.textTa| |00001a80| 62 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |b | | |00001a90| 20 20 20 20 20 20 20 20 | 3d 20 64 6f 63 75 6d 65 | |= docume| |00001aa0| 6e 74 2e 67 65 74 45 6c | 65 6d 65 6e 74 42 79 49 |nt.getEl|ementByI| |00001ab0| 64 28 22 74 65 78 74 54 | 61 62 22 29 3b 0a 20 20 |d("textT|ab");. | |00001ac0| 67 44 69 61 6c 6f 67 2e | 62 72 6f 77 6e 46 6f 78 |gDialog.|brownFox| |00001ad0| 4c 61 62 65 6c 20 20 20 | 20 20 20 20 20 20 20 20 |Label | | |00001ae0| 20 20 20 20 20 20 3d 20 | 64 6f 63 75 6d 65 6e 74 | = |document| |00001af0| 2e 67 65 74 45 6c 65 6d | 65 6e 74 42 79 49 64 28 |.getElem|entById(| |00001b00| 22 62 72 6f 77 6e 46 6f | 78 4c 61 62 65 6c 22 29 |"brownFo|xLabel")| |00001b10| 3b 0a 20 20 67 44 69 61 | 6c 6f 67 2e 62 61 63 6b |;. gDia|log.back| |00001b20| 67 72 6f 75 6e 64 49 6d | 61 67 65 49 6e 70 75 74 |groundIm|ageInput| |00001b30| 20 20 20 20 20 20 20 20 | 20 20 3d 20 64 6f 63 75 | | = docu| |00001b40| 6d 65 6e 74 2e 67 65 74 | 45 6c 65 6d 65 6e 74 42 |ment.get|ElementB| |00001b50| 79 49 64 28 22 62 61 63 | 6b 67 72 6f 75 6e 64 49 |yId("bac|kgroundI| |00001b60| 6d 61 67 65 49 6e 70 75 | 74 22 29 3b 0a 20 20 67 |mageInpu|t");. g| |00001b70| 44 69 61 6c 6f 67 2e 62 | 61 63 6b 67 72 6f 75 6e |Dialog.b|ackgroun| |00001b80| 64 50 72 65 76 69 65 77 | 20 20 20 20 20 20 20 20 |dPreview| | |00001b90| 20 20 20 20 20 3d 20 64 | 6f 63 75 6d 65 6e 74 2e | = d|ocument.| |00001ba0| 67 65 74 45 6c 65 6d 65 | 6e 74 42 79 49 64 28 22 |getEleme|ntById("| |00001bb0| 62 61 63 6b 67 72 6f 75 | 6e 64 50 72 65 76 69 65 |backgrou|ndPrevie| |00001bc0| 77 22 29 3b 0a 20 20 67 | 44 69 61 6c 6f 67 2e 73 |w");. g|Dialog.s| |00001bd0| 68 65 65 74 54 61 62 62 | 6f 78 20 20 20 20 20 20 |heetTabb|ox | |00001be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3d 20 64 | | = d| |00001bf0| 6f 63 75 6d 65 6e 74 2e | 67 65 74 45 6c 65 6d 65 |ocument.|getEleme| |00001c00| 6e 74 42 79 49 64 28 22 | 73 68 65 65 74 54 61 62 |ntById("|sheetTab| |00001c10| 62 6f 78 22 29 3b 0a 20 | 20 67 44 69 61 6c 6f 67 |box");. | gDialog| |00001c20| 2e 62 61 63 6b 67 72 6f | 75 6e 64 43 6f 6c 6f 72 |.backgro|undColor| |00001c30| 49 6e 70 75 74 20 20 20 | 20 20 20 20 20 20 20 3d |Input | =| |00001c40| 20 64 6f 63 75 6d 65 6e | 74 2e 67 65 74 45 6c 65 | documen|t.getEle| |00001c50| 6d 65 6e 74 42 79 49 64 | 28 22 62 61 63 6b 67 72 |mentById|("backgr| |00001c60| 6f 75 6e 64 43 6f 6c 6f | 72 49 6e 70 75 74 22 29 |oundColo|rInput")| |00001c70| 3b 0a 20 20 67 44 69 61 | 6c 6f 67 2e 74 65 78 74 |;. gDia|log.text| |00001c80| 43 6f 6c 6f 72 49 6e 70 | 75 74 20 20 20 20 20 20 |ColorInp|ut | |00001c90| 20 20 20 20 20 20 20 20 | 20 20 3d 20 64 6f 63 75 | | = docu| |00001ca0| 6d 65 6e 74 2e 67 65 74 | 45 6c 65 6d 65 6e 74 42 |ment.get|ElementB| |00001cb0| 79 49 64 28 22 74 65 78 | 74 43 6f 6c 6f 72 49 6e |yId("tex|tColorIn| |00001cc0| 70 75 74 22 29 3b 0a 20 | 20 67 44 69 61 6c 6f 67 |put");. | gDialog| |00001cd0| 2e 62 61 63 6b 67 72 6f | 75 6e 64 52 65 70 65 61 |.backgro|undRepea| |00001ce0| 74 4d 65 6e 75 6c 69 73 | 74 20 20 20 20 20 20 3d |tMenulis|t =| |00001cf0| 20 64 6f 63 75 6d 65 6e | 74 2e 67 65 74 45 6c 65 | documen|t.getEle| |00001d00| 6d 65 6e 74 42 79 49 64 | 28 22 62 61 63 6b 67 72 |mentById|("backgr| |00001d10| 6f 75 6e 64 52 65 70 65 | 61 74 4d 65 6e 75 6c 69 |oundRepe|atMenuli| |00001d20| 73 74 22 29 3b 0a 20 20 | 67 44 69 61 6c 6f 67 2e |st");. |gDialog.| |00001d30| 62 61 63 6b 67 72 6f 75 | 6e 64 41 74 74 61 63 68 |backgrou|ndAttach| |00001d40| 6d 65 6e 74 43 68 65 63 | 6b 62 6f 78 20 20 3d 20 |mentChec|kbox = | |00001d50| 64 6f 63 75 6d 65 6e 74 | 2e 67 65 74 45 6c 65 6d |document|.getElem| |00001d60| 65 6e 74 42 79 49 64 28 | 22 62 61 63 6b 67 72 6f |entById(|"backgro| |00001d70| 75 6e 64 41 74 74 61 63 | 68 6d 65 6e 74 43 68 65 |undAttac|hmentChe| |00001d80| 63 6b 62 6f 78 22 29 3b | 0a 20 20 67 44 69 61 6c |ckbox");|. gDial| |00001d90| 6f 67 2e 78 42 61 63 6b | 67 72 6f 75 6e 64 50 6f |og.xBack|groundPo| |00001da0| 73 69 74 69 6f 6e 52 61 | 64 69 6f 67 72 6f 75 70 |sitionRa|diogroup| |00001db0| 20 3d 20 64 6f 63 75 6d | 65 6e 74 2e 67 65 74 45 | = docum|ent.getE| |00001dc0| 6c 65 6d 65 6e 74 42 79 | 49 64 28 22 78 42 61 63 |lementBy|Id("xBac| |00001dd0| 6b 67 72 6f 75 6e 64 50 | 6f 73 69 74 69 6f 6e 52 |kgroundP|ositionR| |00001de0| 61 64 69 6f 67 72 6f 75 | 70 22 29 3b 0a 20 20 67 |adiogrou|p");. g| |00001df0| 44 69 61 6c 6f 67 2e 79 | 42 61 63 6b 67 72 6f 75 |Dialog.y|Backgrou| |00001e00| 6e 64 50 6f 73 69 74 69 | 6f 6e 52 61 64 69 6f 67 |ndPositi|onRadiog| |00001e10| 72 6f 75 70 20 3d 20 64 | 6f 63 75 6d 65 6e 74 2e |roup = d|ocument.| |00001e20| 67 65 74 45 6c 65 6d 65 | 6e 74 42 79 49 64 28 22 |getEleme|ntById("| |00001e30| 79 42 61 63 6b 67 72 6f | 75 6e 64 50 6f 73 69 74 |yBackgro|undPosit| |00001e40| 69 6f 6e 52 61 64 69 6f | 67 72 6f 75 70 22 29 3b |ionRadio|group");| |00001e50| 0a 20 20 67 44 69 61 6c | 6f 67 2e 66 6f 6e 74 46 |. gDial|og.fontF| |00001e60| 61 6d 69 6c 79 52 61 64 | 69 6f 67 72 6f 75 70 20 |amilyRad|iogroup | |00001e70| 20 20 20 20 20 20 20 20 | 20 3d 20 64 6f 63 75 6d | | = docum| |00001e80| 65 6e 74 2e 67 65 74 45 | 6c 65 6d 65 6e 74 42 79 |ent.getE|lementBy| |00001e90| 49 64 28 22 66 6f 6e 74 | 46 61 6d 69 6c 79 52 61 |Id("font|FamilyRa| |00001ea0| 64 69 6f 67 72 6f 75 70 | 22 29 3b 0a 20 20 67 44 |diogroup|");. gD| |00001eb0| 69 61 6c 6f 67 2e 63 75 | 73 74 6f 6d 46 6f 6e 74 |ialog.cu|stomFont| |00001ec0| 46 61 6d 69 6c 79 49 6e | 70 75 74 20 20 20 20 20 |FamilyIn|put | |00001ed0| 20 20 20 20 3d 20 64 6f | 63 75 6d 65 6e 74 2e 67 | = do|cument.g| |00001ee0| 65 74 45 6c 65 6d 65 6e | 74 42 79 49 64 28 22 63 |etElemen|tById("c| |00001ef0| 75 73 74 6f 6d 46 6f 6e | 74 46 61 6d 69 6c 79 49 |ustomFon|tFamilyI| |00001f00| 6e 70 75 74 22 29 3b 0a | 20 20 67 44 69 61 6c 6f |nput");.| gDialo| |00001f10| 67 2e 70 72 65 64 65 66 | 46 6f 6e 74 46 61 6d 69 |g.predef|FontFami| |00001f20| 6c 79 4d 65 6e 75 6c 69 | 73 74 20 20 20 20 20 20 |lyMenuli|st | |00001f30| 3d 20 64 6f 63 75 6d 65 | 6e 74 2e 67 65 74 45 6c |= docume|nt.getEl| |00001f40| 65 6d 65 6e 74 42 79 49 | 64 28 22 70 72 65 64 65 |ementByI|d("prede| |00001f50| 66 46 6f 6e 74 46 61 6d | 69 6c 79 4d 65 6e 75 6c |fFontFam|ilyMenul| |00001f60| 69 73 74 22 29 3b 0a 20 | 20 67 44 69 61 6c 6f 67 |ist");. | gDialog| |00001f70| 2e 66 6f 6e 74 53 69 7a | 65 49 6e 70 75 74 20 20 |.fontSiz|eInput | |00001f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3d | | =| |00001f90| 20 64 6f 63 75 6d 65 6e | 74 2e 67 65 74 45 6c 65 | documen|t.getEle| |00001fa0| 6d 65 6e 74 42 79 49 64 | 28 22 66 6f 6e 74 53 69 |mentById|("fontSi| |00001fb0| 7a 65 49 6e 70 75 74 22 | 29 3b 0a 20 20 67 44 69 |zeInput"|);. gDi| |00001fc0| 61 6c 6f 67 2e 6c 69 6e | 65 48 65 69 67 68 74 49 |alog.lin|eHeightI| |00001fd0| 6e 70 75 74 20 20 20 20 | 20 20 20 20 20 20 20 20 |nput | | |00001fe0| 20 20 20 3d 20 64 6f 63 | 75 6d 65 6e 74 2e 67 65 | = doc|ument.ge| |00001ff0| 74 45 6c 65 6d 65 6e 74 | 42 79 49 64 28 22 6c 69 |tElement|ById("li| |00002000| 6e 65 48 65 69 67 68 74 | 49 6e 70 75 74 22 29 3b |neHeight|Input");| |00002010| 0a 20 20 67 44 69 61 6c | 6f 67 2e 74 65 78 74 55 |. gDial|og.textU| |00002020| 6e 64 65 72 6c 69 6e 65 | 43 68 65 63 6b 62 6f 78 |nderline|Checkbox| |00002030| 20 20 20 20 20 20 20 20 | 20 3d 20 64 6f 63 75 6d | | = docum| |00002040| 65 6e 74 2e 67 65 74 45 | 6c 65 6d 65 6e 74 42 79 |ent.getE|lementBy| |00002050| 49 64 28 22 75 6e 64 65 | 72 6c 69 6e 65 54 65 78 |Id("unde|rlineTex| |00002060| 74 44 65 63 6f 72 61 74 | 69 6f 6e 43 68 65 63 6b |tDecorat|ionCheck| |00002070| 62 6f 78 22 29 3b 0a 20 | 20 67 44 69 61 6c 6f 67 |box");. | gDialog| |00002080| 2e 74 65 78 74 4f 76 65 | 72 6c 69 6e 65 43 68 65 |.textOve|rlineChe| |00002090| 63 6b 62 6f 78 20 20 20 | 20 20 20 20 20 20 20 3d |ckbox | =| |000020a0| 20 64 6f 63 75 6d 65 6e | 74 2e 67 65 74 45 6c 65 | documen|t.getEle| |000020b0| 6d 65 6e 74 42 79 49 64 | 28 22 6f 76 65 72 6c 69 |mentById|("overli| |000020c0| 6e 65 54 65 78 74 44 65 | 63 6f 72 61 74 69 6f 6e |neTextDe|coration| |000020d0| 43 68 65 63 6b 62 6f 78 | 22 29 3b 0a 20 20 67 44 |Checkbox|");. gD| |000020e0| 69 61 6c 6f 67 2e 74 65 | 78 74 4c 69 6e 65 74 68 |ialog.te|xtLineth| |000020f0| 72 6f 75 67 68 43 68 65 | 63 6b 62 6f 78 20 20 20 |roughChe|ckbox | |00002100| 20 20 20 20 3d 20 64 6f | 63 75 6d 65 6e 74 2e 67 | = do|cument.g| |00002110| 65 74 45 6c 65 6d 65 6e | 74 42 79 49 64 28 22 6c |etElemen|tById("l| |00002120| 69 6e 65 74 68 72 6f 75 | 67 68 54 65 78 74 44 65 |inethrou|ghTextDe| |00002130| 63 6f 72 61 74 69 6f 6e | 43 68 65 63 6b 62 6f 78 |coration|Checkbox| |00002140| 22 29 3b 0a 20 20 67 44 | 69 61 6c 6f 67 2e 74 65 |");. gD|ialog.te| |00002150| 78 74 42 6c 69 6e 6b 43 | 68 65 63 6b 62 6f 78 20 |xtBlinkC|heckbox | |00002160| 20 20 20 20 20 20 20 20 | 20 20 20 20 3d 20 64 6f | | = do| |00002170| 63 75 6d 65 6e 74 2e 67 | 65 74 45 6c 65 6d 65 6e |cument.g|etElemen| |00002180| 74 42 79 49 64 28 22 62 | 6c 69 6e 6b 54 65 78 74 |tById("b|linkText| |00002190| 44 65 63 6f 72 61 74 69 | 6f 6e 43 68 65 63 6b 62 |Decorati|onCheckb| |000021a0| 6f 78 22 29 3b 0a 20 20 | 67 44 69 61 6c 6f 67 2e |ox");. |gDialog.| |000021b0| 6e 6f 44 65 63 6f 72 61 | 74 69 6f 6e 43 68 65 63 |noDecora|tionChec| |000021c0| 6b 62 6f 78 20 20 20 20 | 20 20 20 20 20 20 3d 20 |kbox | = | |000021d0| 64 6f 63 75 6d 65 6e 74 | 2e 67 65 74 45 6c 65 6d |document|.getElem| |000021e0| 65 6e 74 42 79 49 64 28 | 22 6e 6f 6e 65 54 65 78 |entById(|"noneTex| |000021f0| 74 44 65 63 6f 72 61 74 | 69 6f 6e 43 68 65 63 6b |tDecorat|ionCheck| |00002200| 62 6f 78 22 29 3b 0a 0a | 20 20 67 44 69 61 6c 6f |box");..| gDialo| |00002210| 67 2e 74 6f 70 42 6f 72 | 64 65 72 53 74 79 6c 65 |g.topBor|derStyle| |00002220| 4d 65 6e 75 6c 69 73 74 | 20 20 20 20 20 20 20 20 |Menulist| | |00002230| 3d 20 64 6f 63 75 6d 65 | 6e 74 2e 67 65 74 45 6c |= docume|nt.getEl| |00002240| 65 6d 65 6e 74 42 79 49 | 64 28 22 74 6f 70 42 6f |ementByI|d("topBo| |00002250| 72 64 65 72 53 74 79 6c | 65 4d 65 6e 75 6c 69 73 |rderStyl|eMenulis| |00002260| 74 22 29 3b 0a 20 20 67 | 44 69 61 6c 6f 67 2e 74 |t");. g|Dialog.t| |00002270| 6f 70 42 6f 72 64 65 72 | 57 69 64 74 68 49 6e 70 |opBorder|WidthInp| |00002280| 75 74 20 20 20 20 20 20 | 20 20 20 20 20 3d 20 64 |ut | = d| |00002290| 6f 63 75 6d 65 6e 74 2e | 67 65 74 45 6c 65 6d 65 |ocument.|getEleme| |000022a0| 6e 74 42 79 49 64 28 22 | 74 6f 70 42 6f 72 64 65 |ntById("|topBorde| |000022b0| 72 57 69 64 74 68 49 6e | 70 75 74 22 29 3b 0a 20 |rWidthIn|put");. | |000022c0| 20 67 44 69 61 6c 6f 67 | 2e 74 6f 70 42 6f 72 64 | gDialog|.topBord| |000022d0| 65 72 43 6f 6c 6f 72 49 | 6e 70 75 74 20 20 20 20 |erColorI|nput | |000022e0| 20 20 20 20 20 20 20 3d | 20 64 6f 63 75 6d 65 6e | =| documen| |000022f0| 74 2e 67 65 74 45 6c 65 | 6d 65 6e 74 42 79 49 64 |t.getEle|mentById| |00002300| 28 22 74 6f 70 42 6f 72 | 64 65 72 43 6f 6c 6f 72 |("topBor|derColor| |00002310| 49 6e 70 75 74 22 29 3b | 0a 0a 20 20 67 44 69 61 |Input");|.. gDia| |00002320| 6c 6f 67 2e 6c 65 66 74 | 42 6f 72 64 65 72 53 74 |log.left|BorderSt| |00002330| 79 6c 65 4d 65 6e 75 6c | 69 73 74 20 20 20 20 20 |yleMenul|ist | |00002340| 20 20 3d 20 64 6f 63 75 | 6d 65 6e 74 2e 67 65 74 | = docu|ment.get| |00002350| 45 6c 65 6d 65 6e 74 42 | 79 49 64 28 22 6c 65 66 |ElementB|yId("lef| |00002360| 74 42 6f 72 64 65 72 53 | 74 79 6c 65 4d 65 6e 75 |tBorderS|tyleMenu| |00002370| 6c 69 73 74 22 29 3b 0a | 20 20 67 44 69 61 6c 6f |list");.| gDialo| |00002380| 67 2e 6c 65 66 74 42 6f | 72 64 65 72 57 69 64 74 |g.leftBo|rderWidt| |00002390| 68 49 6e 70 75 74 20 20 | 20 20 20 20 20 20 20 20 |hInput | | |000023a0| 3d 20 64 6f 63 75 6d 65 | 6e 74 2e 67 65 74 45 6c |= docume|nt.getEl| |000023b0| 65 6d 65 6e 74 42 79 49 | 64 28 22 6c 65 66 74 42 |ementByI|d("leftB| |000023c0| 6f 72 64 65 72 57 69 64 | 74 68 49 6e 70 75 74 22 |orderWid|thInput"| |000023d0| 29 3b 0a 20 20 67 44 69 | 61 6c 6f 67 2e 6c 65 66 |);. gDi|alog.lef| |000023e0| 74 42 6f 72 64 65 72 43 | 6f 6c 6f 72 49 6e 70 75 |tBorderC|olorInpu| |000023f0| 74 20 20 20 20 20 20 20 | 20 20 20 3d 20 64 6f 63 |t | = doc| |00002400| 75 6d 65 6e 74 2e 67 65 | 74 45 6c 65 6d 65 6e 74 |ument.ge|tElement| |00002410| 42 79 49 64 28 22 6c 65 | 66 74 42 6f 72 64 65 72 |ById("le|ftBorder| |00002420| 43 6f 6c 6f 72 49 6e 70 | 75 74 22 29 3b 0a 0a 20 |ColorInp|ut");.. | |00002430| 20 67 44 69 61 6c 6f 67 | 2e 72 69 67 68 74 42 6f | gDialog|.rightBo| |00002440| 72 64 65 72 53 74 79 6c | 65 4d 65 6e 75 6c 69 73 |rderStyl|eMenulis| |00002450| 74 20 20 20 20 20 20 3d | 20 64 6f 63 75 6d 65 6e |t =| documen| |00002460| 74 2e 67 65 74 45 6c 65 | 6d 65 6e 74 42 79 49 64 |t.getEle|mentById| |00002470| 28 22 72 69 67 68 74 42 | 6f 72 64 65 72 53 74 79 |("rightB|orderSty| |00002480| 6c 65 4d 65 6e 75 6c 69 | 73 74 22 29 3b 0a 20 20 |leMenuli|st");. | |00002490| 67 44 69 61 6c 6f 67 2e | 72 69 67 68 74 42 6f 72 |gDialog.|rightBor| |000024a0| 64 65 72 57 69 64 74 68 | 49 6e 70 75 74 20 20 20 |derWidth|Input | |000024b0| 20 20 20 20 20 20 3d 20 | 64 6f 63 75 6d 65 6e 74 | = |document| |000024c0| 2e 67 65 74 45 6c 65 6d | 65 6e 74 42 79 49 64 28 |.getElem|entById(| |000024d0| 22 72 69 67 68 74 42 6f | 72 64 65 72 57 69 64 74 |"rightBo|rderWidt| |000024e0| 68 49 6e 70 75 74 22 29 | 3b 0a 20 20 67 44 69 61 |hInput")|;. gDia| |000024f0| 6c 6f 67 2e 72 69 67 68 | 74 42 6f 72 64 65 72 43 |log.righ|tBorderC| |00002500| 6f 6c 6f 72 49 6e 70 75 | 74 20 20 20 20 20 20 20 |olorInpu|t | |00002510| 20 20 3d 20 64 6f 63 75 | 6d 65 6e 74 2e 67 65 74 | = docu|ment.get| |00002520| 45 6c 65 6d 65 6e 74 42 | 79 49 64 28 22 72 69 67 |ElementB|yId("rig| |00002530| 68 74 42 6f 72 64 65 72 | 43 6f 6c 6f 72 49 6e 70 |htBorder|ColorInp| |00002540| 75 74 22 29 3b 0a 0a 20 | 20 67 44 69 61 6c 6f 67 |ut");.. | gDialog| |00002550| 2e 62 6f 74 74 6f 6d 42 | 6f 72 64 65 72 53 74 79 |.bottomB|orderSty| |00002560| 6c 65 4d 65 6e 75 6c 69 | 73 74 20 20 20 20 20 3d |leMenuli|st =| |00002570| 20 64 6f 63 75 6d 65 6e | 74 2e 67 65 74 45 6c 65 | documen|t.getEle| |00002580| 6d 65 6e 74 42 79 49 64 | 28 22 62 6f 74 74 6f 6d |mentById|("bottom| |00002590| 42 6f 72 64 65 72 53 74 | 79 6c 65 4d 65 6e 75 6c |BorderSt|yleMenul| |000025a0| 69 73 74 22 29 3b 0a 20 | 20 67 44 69 61 6c 6f 67 |ist");. | gDialog| |000025b0| 2e 62 6f 74 74 6f 6d 42 | 6f 72 64 65 72 57 69 64 |.bottomB|orderWid| |000025c0| 74 68 49 6e 70 75 74 20 | 20 20 20 20 20 20 20 3d |thInput | =| |000025d0| 20 64 6f 63 75 6d 65 6e | 74 2e 67 65 74 45 6c 65 | documen|t.getEle| |000025e0| 6d 65 6e 74 42 79 49 64 | 28 22 62 6f 74 74 6f 6d |mentById|("bottom| |000025f0| 42 6f 72 64 65 72 57 69 | 64 74 68 49 6e 70 75 74 |BorderWi|dthInput| |00002600| 22 29 3b 0a 20 20 67 44 | 69 61 6c 6f 67 2e 62 6f |");. gD|ialog.bo| |00002610| 74 74 6f 6d 42 6f 72 64 | 65 72 43 6f 6c 6f 72 49 |ttomBord|erColorI| |00002620| 6e 70 75 74 20 20 20 20 | 20 20 20 20 3d 20 64 6f |nput | = do| |00002630| 63 75 6d 65 6e 74 2e 67 | 65 74 45 6c 65 6d 65 6e |cument.g|etElemen| |00002640| 74 42 79 49 64 28 22 62 | 6f 74 74 6f 6d 42 6f 72 |tById("b|ottomBor| |00002650| 64 65 72 43 6f 6c 6f 72 | 49 6e 70 75 74 22 29 3b |derColor|Input");| |00002660| 0a 0a 20 20 67 44 69 61 | 6c 6f 67 2e 61 6c 6c 46 |.. gDia|log.allF| |00002670| 6f 75 72 42 6f 72 64 65 | 72 73 53 61 6d 65 20 20 |ourBorde|rsSame | |00002680| 20 20 20 20 20 20 20 20 | 20 20 3d 20 64 6f 63 75 | | = docu| |00002690| 6d 65 6e 74 2e 67 65 74 | 45 6c 65 6d 65 6e 74 42 |ment.get|ElementB| |000026a0| 79 49 64 28 22 61 6c 6c | 46 6f 75 72 42 6f 72 64 |yId("all|FourBord| |000026b0| 65 72 73 53 61 6d 65 22 | 29 3b 0a 20 20 67 44 69 |ersSame"|);. gDi| |000026c0| 61 6c 6f 67 2e 62 6f 72 | 64 65 72 50 72 65 76 69 |alog.bor|derPrevi| |000026d0| 65 77 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ew | | |000026e0| 20 20 20 3d 20 64 6f 63 | 75 6d 65 6e 74 2e 67 65 | = doc|ument.ge| |000026f0| 74 45 6c 65 6d 65 6e 74 | 42 79 49 64 28 22 62 6f |tElement|ById("bo| |00002700| 72 64 65 72 50 72 65 76 | 69 65 77 22 29 3b 0a 0a |rderPrev|iew");..| |00002710| 20 20 67 44 69 61 6c 6f | 67 2e 76 6f 6c 75 6d 65 | gDialo|g.volume| |00002720| 53 63 72 6f 6c 6c 62 61 | 72 20 20 20 20 20 20 20 |Scrollba|r | |00002730| 20 20 20 20 20 20 20 20 | 3d 20 64 6f 63 75 6d 65 | |= docume| |00002740| 6e 74 2e 67 65 74 45 6c | 65 6d 65 6e 74 42 79 49 |nt.getEl|ementByI| |00002750| 64 28 22 76 6f 6c 75 6d | 65 53 63 72 6f 6c 6c 62 |d("volum|eScrollb| |00002760| 61 72 22 29 3b 0a 20 20 | 67 44 69 61 6c 6f 67 2e |ar");. |gDialog.| |00002770| 76 6f 6c 75 6d 65 4d 65 | 6e 75 6c 69 73 74 20 20 |volumeMe|nulist | |00002780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3d 20 | | = | |00002790| 64 6f 63 75 6d 65 6e 74 | 2e 67 65 74 45 6c 65 6d |document|.getElem| |000027a0| 65 6e 74 42 79 49 64 28 | 22 76 6f 6c 75 6d 65 4d |entById(|"volumeM| |000027b0| 65 6e 75 6c 69 73 74 22 | 29 3b 0a 20 20 67 44 69 |enulist"|);. gDi| |000027c0| 61 6c 6f 67 2e 6d 75 74 | 65 56 6f 6c 75 6d 65 43 |alog.mut|eVolumeC| |000027d0| 68 65 63 6b 62 6f 78 20 | 20 20 20 20 20 20 20 20 |heckbox | | |000027e0| 20 20 20 3d 20 64 6f 63 | 75 6d 65 6e 74 2e 67 65 | = doc|ument.ge| |000027f0| 74 45 6c 65 6d 65 6e 74 | 42 79 49 64 28 22 6d 75 |tElement|ById("mu| |00002800| 74 65 56 6f 6c 75 6d 65 | 43 68 65 63 6b 62 6f 78 |teVolume|Checkbox| |00002810| 22 29 3b 0a 0a 20 20 67 | 44 69 61 6c 6f 67 2e 6f |");.. g|Dialog.o| |00002820| 70 61 63 69 74 79 53 63 | 72 6f 6c 6c 62 61 72 20 |pacitySc|rollbar | |00002830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3d 20 64 | | = d| |00002840| 6f 63 75 6d 65 6e 74 2e | 67 65 74 45 6c 65 6d 65 |ocument.|getEleme| |00002850| 6e 74 42 79 49 64 28 22 | 6f 70 61 63 69 74 79 53 |ntById("|opacityS| |00002860| 63 72 6f 6c 6c 62 61 72 | 22 29 3b 0a 20 20 67 44 |crollbar|");. gD| |00002870| 69 61 6c 6f 67 2e 6f 70 | 61 63 69 74 79 4c 61 62 |ialog.op|acityLab| |00002880| 65 6c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |el | | |00002890| 20 20 20 20 3d 20 64 6f | 63 75 6d 65 6e 74 2e 67 | = do|cument.g| |000028a0| 65 74 45 6c 65 6d 65 6e | 74 42 79 49 64 28 22 6f |etElemen|tById("o| |000028b0| 70 61 63 69 74 79 4c 61 | 62 65 6c 22 29 3b 0a 0a |pacityLa|bel");..| |000028c0| 20 20 67 44 69 61 6c 6f | 67 2e 73 68 65 65 74 49 | gDialo|g.sheetI| |000028d0| 6e 66 6f 54 61 62 47 72 | 69 64 52 6f 77 73 20 20 |nfoTabGr|idRows | |000028e0| 20 20 20 20 20 20 20 20 | 3d 20 64 6f 63 75 6d 65 | |= docume| |000028f0| 6e 74 2e 67 65 74 45 6c | 65 6d 65 6e 74 42 79 49 |nt.getEl|ementByI| |00002900| 64 28 22 73 68 65 65 74 | 49 6e 66 6f 54 61 62 47 |d("sheet|InfoTabG| |00002910| 72 69 64 52 6f 77 73 22 | 29 3b 0a 20 20 67 44 69 |ridRows"|);. gDi| |00002920| 61 6c 6f 67 2e 73 68 65 | 65 74 49 6e 66 6f 54 61 |alog.she|etInfoTa| |00002930| 62 47 72 69 64 20 20 20 | 20 20 20 20 20 20 20 20 |bGrid | | |00002940| 20 20 20 3d 20 64 6f 63 | 75 6d 65 6e 74 2e 67 65 | = doc|ument.ge| |00002950| 74 45 6c 65 6d 65 6e 74 | 42 79 49 64 28 22 73 68 |tElement|ById("sh| |00002960| 65 65 74 49 6e 66 6f 54 | 61 62 47 72 69 64 22 29 |eetInfoT|abGrid")| |00002970| 3b 0a 0a 20 20 67 44 69 | 61 6c 6f 67 2e 65 78 70 |;.. gDi|alog.exp| |00002980| 65 72 74 4d 6f 64 65 20 | 3d 20 74 72 75 65 3b 0a |ertMode |= true;.| |00002990| 20 20 67 44 69 61 6c 6f | 67 2e 6d 6f 64 69 66 69 | gDialo|g.modifi| |000029a0| 65 64 20 3d 20 66 61 6c | 73 65 3b 0a 20 20 67 44 |ed = fal|se;. gD| |000029b0| 69 61 6c 6f 67 2e 73 65 | 6c 65 63 74 65 64 49 6e |ialog.se|lectedIn| |000029c0| 64 65 78 20 3d 20 2d 31 | 3b 0a 0a 20 20 67 48 61 |dex = -1|;.. gHa| |000029d0| 76 65 44 6f 63 75 6d 65 | 6e 74 55 72 6c 20 3d 20 |veDocume|ntUrl = | |000029e0| 47 65 74 44 6f 63 75 6d | 65 6e 74 42 61 73 65 55 |GetDocum|entBaseU| |000029f0| 72 6c 28 29 3b 0a 0a 20 | 20 2f 2f 20 49 6e 69 74 |rl();.. | // Init| |00002a00| 69 61 6c 69 7a 65 20 61 | 6c 6c 20 64 69 61 6c 6f |ialize a|ll dialo| |00002a10| 67 20 77 69 64 67 65 74 | 73 20 68 65 72 65 2c 0a |g widget|s here,.| |00002a20| 20 20 2f 2f 20 65 2e 67 | 2e 2c 20 67 65 74 20 61 | // e.g|., get a| |00002a30| 74 74 72 69 62 75 74 65 | 73 20 66 72 6f 6d 20 61 |ttribute|s from a| |00002a40| 6e 20 65 6c 65 6d 65 6e | 74 20 66 6f 72 20 70 72 |n elemen|t for pr| |00002a50| 6f 70 65 72 74 79 20 64 | 69 61 6c 6f 67 0a 20 20 |operty d|ialog. | |00002a60| 49 6e 69 74 53 68 65 65 | 74 73 54 72 65 65 28 67 |InitShee|tsTree(g| |00002a70| 44 69 61 6c 6f 67 2e 73 | 68 65 65 74 73 54 72 65 |Dialog.s|heetsTre| |00002a80| 65 63 68 69 6c 64 72 65 | 6e 29 3b 0a 20 20 0a 20 |echildre|n);. . | |00002a90| 20 2f 2f 20 53 65 74 20 | 77 69 6e 64 6f 77 20 6c | // Set |window l| |00002aa0| 6f 63 61 74 69 6f 6e 20 | 72 65 6c 61 74 69 76 65 |ocation |relative| |00002ab0| 20 74 6f 20 70 61 72 65 | 6e 74 20 77 69 6e 64 6f | to pare|nt windo| |00002ac0| 77 20 28 62 61 73 65 64 | 20 6f 6e 20 70 65 72 73 |w (based| on pers| |00002ad0| 69 73 74 65 64 20 61 74 | 74 72 69 62 75 74 65 73 |isted at|tributes| |00002ae0| 29 0a 20 20 53 65 74 57 | 69 6e 64 6f 77 4c 6f 63 |). SetW|indowLoc| |00002af0| 61 74 69 6f 6e 28 29 3b | 0a 7d 0a 0a 2f 2f 20 2a |ation();|.}..// *| |00002b00| 20 54 6f 67 67 6c 65 73 | 20 6f 6e 2f 6f 66 66 20 | Toggles| on/off | |00002b10| 65 78 70 65 72 74 20 6d | 6f 64 65 2e 20 49 6e 20 |expert m|ode. In | |00002b20| 65 78 70 65 72 74 20 6d | 6f 64 65 2c 20 61 6c 6c |expert m|ode, all| |00002b30| 20 62 75 74 74 6f 6e 73 | 20 61 72 65 20 65 6e 61 | buttons| are ena| |00002b40| 62 6c 65 64 0a 2f 2f 20 | 20 20 69 6e 63 6c 75 64 |bled.// | includ| |00002b50| 69 6e 67 20 62 75 74 74 | 6f 6e 73 20 66 6f 72 20 |ing butt|ons for | |00002b60| 73 74 79 6c 65 73 68 65 | 65 74 20 63 72 65 61 74 |styleshe|et creat| |00002b70| 69 6f 6e 2e 20 57 68 65 | 6e 20 74 68 65 20 6d 6f |ion. Whe|n the mo| |00002b80| 64 65 20 69 73 20 6f 66 | 66 2c 20 6f 6e 6c 79 0a |de is of|f, only.| |00002b90| 2f 2f 20 20 20 74 68 65 | 20 22 63 72 65 61 74 65 |// the| "create| |00002ba0| 20 72 75 6c 65 22 20 62 | 75 74 74 6f 6e 20 69 73 | rule" b|utton is| |00002bb0| 20 65 6e 61 62 6c 65 64 | 2c 20 61 20 73 74 79 6c | enabled|, a styl| |00002bc0| 65 73 68 65 65 74 20 62 | 65 69 6e 67 20 63 72 65 |esheet b|eing cre| |00002bd0| 61 74 65 64 20 74 6f 20 | 63 6f 6e 74 61 69 6e 0a |ated to |contain.| |00002be0| 2f 2f 20 20 20 74 68 65 | 20 6e 65 77 20 72 75 6c |// the| new rul| |00002bf0| 65 20 69 66 20 6e 65 63 | 65 73 73 61 72 79 0a 66 |e if nec|essary.f| |00002c00| 75 6e 63 74 69 6f 6e 20 | 74 6f 67 67 6c 65 45 78 |unction |toggleEx| |00002c10| 70 65 72 74 4d 6f 64 65 | 28 29 0a 7b 0a 20 20 2f |pertMode|().{. /| |00002c20| 2f 20 74 6f 67 67 6c 65 | 20 74 68 65 20 62 6f 6f |/ toggle| the boo| |00002c30| 6c 65 61 6e 0a 20 20 67 | 44 69 61 6c 6f 67 2e 65 |lean. g|Dialog.e| |00002c40| 78 70 65 72 74 4d 6f 64 | 65 20 3d 20 21 67 44 69 |xpertMod|e = !gDi| |00002c50| 61 6c 6f 67 2e 65 78 70 | 65 72 74 4d 6f 64 65 3b |alog.exp|ertMode;| |00002c60| 0a 0a 20 20 69 66 20 28 | 67 44 69 61 6c 6f 67 2e |.. if (|gDialog.| |00002c70| 65 78 70 65 72 74 4d 6f | 64 65 29 20 7b 0a 20 20 |expertMo|de) {. | |00002c80| 20 20 69 66 20 28 67 44 | 69 61 6c 6f 67 2e 73 65 | if (gD|ialog.se| |00002c90| 6c 65 63 74 65 64 49 6e | 64 65 78 20 3d 3d 20 2d |lectedIn|dex == -| |00002ca0| 31 29 20 7b 0a 20 20 20 | 20 20 20 2f 2f 20 69 66 |1) {. | // if| |00002cb0| 20 65 78 70 65 72 74 20 | 6d 6f 64 65 20 69 73 20 | expert |mode is | |00002cc0| 6f 6e 20 62 75 74 20 6e | 6f 20 73 65 6c 65 63 74 |on but n|o select| |00002cd0| 69 6f 6e 20 69 6e 20 74 | 68 65 20 74 72 65 65 2c |ion in t|he tree,| |00002ce0| 20 6f 6e 6c 79 0a 20 20 | 20 20 20 20 2f 2f 20 73 | only. | // s| |00002cf0| 68 65 65 74 20 63 72 65 | 61 74 69 6f 6e 20 62 75 |heet cre|ation bu| |00002d00| 74 74 6f 6e 73 20 61 72 | 65 20 65 6e 61 62 6c 65 |ttons ar|e enable| |00002d10| 64 0a 20 20 20 20 20 20 | 55 70 64 61 74 65 42 75 |d. |UpdateBu| |00002d20| 74 74 6f 6e 73 28 66 61 | 6c 73 65 2c 20 66 61 6c |ttons(fa|lse, fal| |00002d30| 73 65 2c 20 74 72 75 65 | 2c 20 74 72 75 65 2c 20 |se, true|, true, | |00002d40| 66 61 6c 73 65 2c 20 66 | 61 6c 73 65 29 3b 0a 20 |false, f|alse);. | |00002d50| 20 20 20 7d 0a 20 20 20 | 20 65 6c 73 65 20 7b 0a | }. | else {.| |00002d60| 20 20 20 20 20 20 2f 2f | 20 69 66 20 65 78 70 65 | //| if expe| |00002d70| 72 74 20 6d 6f 64 65 20 | 69 73 20 6f 6e 20 61 6e |rt mode |is on an| |00002d80| 64 20 77 65 20 68 61 76 | 65 20 73 6f 6d 65 74 68 |d we hav|e someth| |00002d90| 69 6e 67 20 73 65 6c 65 | 63 74 65 64 20 69 6e 20 |ing sele|cted in | |00002da0| 74 68 65 20 74 72 65 65 | 2c 0a 20 20 20 20 20 20 |the tree|,. | |00002db0| 2f 2f 20 74 68 65 20 73 | 74 61 74 65 20 6f 66 20 |// the s|tate of | |00002dc0| 74 68 65 20 62 75 74 74 | 6f 6e 73 20 64 65 70 65 |the butt|ons depe| |00002dd0| 6e 64 20 6f 6e 20 74 68 | 65 20 74 79 70 65 20 6f |nd on th|e type o| |00002de0| 66 20 74 68 65 20 73 65 | 6c 65 63 74 69 6f 6e 0a |f the se|lection.| |00002df0| 20 20 20 20 20 20 76 61 | 72 20 65 78 74 65 72 6e | va|r extern| |00002e00| 61 6c 20 20 3d 20 6f 62 | 6a 65 63 74 73 41 72 72 |al = ob|jectsArr| |00002e10| 61 79 5b 67 44 69 61 6c | 6f 67 2e 73 65 6c 65 63 |ay[gDial|og.selec| |00002e20| 74 65 64 49 6e 64 65 78 | 5d 2e 65 78 74 65 72 6e |tedIndex|].extern| |00002e30| 61 6c 3b 0a 20 20 20 20 | 20 20 76 61 72 20 74 79 |al;. | var ty| |00002e40| 70 65 20 20 20 20 20 20 | 3d 20 6f 62 6a 65 63 74 |pe |= object| |00002e50| 73 41 72 72 61 79 5b 67 | 44 69 61 6c 6f 67 2e 73 |sArray[g|Dialog.s| |00002e60| 65 6c 65 63 74 65 64 49 | 6e 64 65 78 5d 2e 74 79 |electedI|ndex].ty| |00002e70| 70 65 3b 0a 20 20 20 20 | 20 20 55 70 64 61 74 65 |pe;. | Update| |00002e80| 42 75 74 74 6f 6e 73 28 | 21 65 78 74 65 72 6e 61 |Buttons(|!externa| |00002e90| 6c 2c 20 21 65 78 74 65 | 72 6e 61 6c 2c 20 74 72 |l, !exte|rnal, tr| |00002ea0| 75 65 2c 20 74 72 75 65 | 2c 20 21 65 78 74 65 72 |ue, true|, !exter| |00002eb0| 6e 61 6c 2c 20 28 21 65 | 78 74 65 72 6e 61 6c 20 |nal, (!e|xternal | |00002ec0| 7c 7c 20 28 74 79 70 65 | 20 3d 3d 20 53 48 45 45 ||| (type| == SHEE| |00002ed0| 54 29 29 20 29 3b 0a 20 | 20 20 20 7d 0a 20 20 7d |T)) );. | }. }| |00002ee0| 0a 20 20 65 6c 73 65 20 | 7b 0a 20 20 20 20 2f 2f |. else |{. //| |00002ef0| 20 69 66 20 77 65 27 72 | 65 20 6e 6f 74 20 69 6e | if we'r|e not in| |00002f00| 20 65 78 70 65 72 74 20 | 6d 6f 64 65 2c 20 61 6c | expert |mode, al| |00002f10| 6c 6f 77 20 6f 6e 6c 79 | 20 72 75 6c 65 20 63 72 |low only| rule cr| |00002f20| 65 61 74 69 6f 6e 20 62 | 75 74 74 6f 6e 0a 20 20 |eation b|utton. | |00002f30| 20 20 55 70 64 61 74 65 | 42 75 74 74 6f 6e 73 28 | Update|Buttons(| |00002f40| 21 67 44 69 61 6c 6f 67 | 2e 61 74 69 6d 70 6f 72 |!gDialog|.atimpor| |00002f50| 74 42 75 74 74 6f 6e 2e | 68 61 73 41 74 74 72 69 |tButton.|hasAttri| |00002f60| 62 75 74 65 28 22 64 69 | 73 61 62 6c 65 64 22 29 |bute("di|sabled")| |00002f70| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | | |00002f80| 20 20 20 20 21 67 44 69 | 61 6c 6f 67 2e 61 74 6d | !gDi|alog.atm| |00002f90| 65 64 69 61 42 75 74 74 | 6f 6e 2e 68 61 73 41 74 |ediaButt|on.hasAt| |00002fa0| 74 72 69 62 75 74 65 28 | 22 64 69 73 61 62 6c 65 |tribute(|"disable| |00002fb0| 64 22 29 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |d"),. | | |00002fc0| 20 20 20 20 20 20 20 21 | 67 44 69 61 6c 6f 67 2e | !|gDialog.| |00002fd0| 6c 69 6e 6b 42 75 74 74 | 6f 6e 2e 68 61 73 41 74 |linkButt|on.hasAt| |00002fe0| 74 72 69 62 75 74 65 28 | 22 64 69 73 61 62 6c 65 |tribute(|"disable| |00002ff0| 64 22 29 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |d"),. | | |00003000| 20 20 20 20 20 20 20 21 | 67 44 69 61 6c 6f 67 2e | !|gDialog.| |00003010| 73 74 79 6c 65 42 75 74 | 74 6f 6e 2e 68 61 73 41 |styleBut|ton.hasA| |00003020| 74 74 72 69 62 75 74 65 | 28 22 64 69 73 61 62 6c |ttribute|("disabl| |00003030| 65 64 22 29 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |ed"),. | | |00003040| 20 20 20 20 20 20 20 20 | 21 67 44 69 61 6c 6f 67 | |!gDialog| |00003050| 2e 72 75 6c 65 42 75 74 | 74 6f 6e 2e 68 61 73 41 |.ruleBut|ton.hasA| |00003060| 74 74 72 69 62 75 74 65 | 28 22 64 69 73 61 62 6c |ttribute|("disabl| |00003070| 65 64 22 29 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |ed"),. | | |00003080| 20 20 20 20 20 20 20 20 | 21 67 44 69 61 6c 6f 67 | |!gDialog| |00003090| 2e 72 65 6d 6f 76 65 42 | 75 74 74 6f 6e 2e 68 61 |.removeB|utton.ha| |000030a0| 73 41 74 74 72 69 62 75 | 74 65 28 22 64 69 73 61 |sAttribu|te("disa| |000030b0| 62 6c 65 64 22 29 29 3b | 0a 20 20 7d 0a 7d 0a 0a |bled"));|. }.}..| |000030c0| 2f 2f 20 2a 20 54 68 69 | 73 20 66 75 6e 63 74 69 |// * Thi|s functi| |000030d0| 6f 6e 20 72 65 63 72 65 | 61 74 65 73 20 74 68 65 |on recre|ates the| |000030e0| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 74 68 65 | content|s of the| |000030f0| 20 53 54 59 4c 45 20 65 | 6c 65 6d 65 6e 74 73 20 | STYLE e|lements | |00003100| 61 6e 64 0a 2f 2f 20 20 | 20 6f 66 20 74 68 65 20 |and.// | of the | |00003110| 73 74 79 6c 65 73 68 65 | 65 74 73 20 6c 6f 63 61 |styleshe|ets loca| |00003120| 6c 20 74 6f 20 74 68 65 | 20 66 69 6c 65 73 79 73 |l to the| filesys| |00003130| 74 65 6d 0a 66 75 6e 63 | 74 69 6f 6e 20 46 6c 75 |tem.func|tion Flu| |00003140| 73 68 43 68 61 6e 67 65 | 73 28 29 0a 7b 0a 20 20 |shChange|s().{. | |00003150| 69 66 20 28 67 44 69 61 | 6c 6f 67 2e 6d 6f 64 69 |if (gDia|log.modi| |00003160| 66 69 65 64 29 20 7b 0a | 20 20 20 20 2f 2f 20 6c |fied) {.| // l| |00003170| 65 74 27 73 20 6d 61 6b | 65 20 73 75 72 65 20 74 |et's mak|e sure t| |00003180| 68 65 20 65 64 69 74 6f | 72 20 69 73 20 67 6f 69 |he edito|r is goi| |00003190| 6e 67 20 74 6f 20 72 65 | 71 75 69 72 65 20 73 61 |ng to re|quire sa| |000031a0| 76 65 20 6f 6e 20 65 78 | 69 74 0a 20 20 20 20 67 |ve on ex|it. g| |000031b0| 65 74 43 75 72 72 65 6e | 74 45 64 69 74 6f 72 28 |etCurren|tEditor(| |000031c0| 29 2e 69 6e 63 72 65 6d | 65 6e 74 4d 6f 64 69 66 |).increm|entModif| |000031d0| 69 63 61 74 69 6f 6e 43 | 6f 75 6e 74 28 31 29 3b |icationC|ount(1);| |000031e0| 0a 20 20 7d 0a 20 20 2f | 2f 20 56 61 6c 69 64 61 |. }. /|/ Valida| |000031f0| 74 65 20 61 6c 6c 20 75 | 73 65 72 20 64 61 74 61 |te all u|ser data| |00003200| 20 61 6e 64 20 73 65 74 | 20 61 74 74 72 69 62 75 | and set| attribu| |00003210| 74 65 73 20 61 6e 64 20 | 70 6f 73 73 69 62 6c 79 |tes and |possibly| |00003220| 20 69 6e 73 65 72 74 20 | 6e 65 77 20 65 6c 65 6d | insert |new elem| |00003230| 65 6e 74 20 68 65 72 65 | 0a 20 20 2f 2f 20 49 66 |ent here|. // If| |00003240| 20 74 68 65 72 65 27 73 | 20 61 6e 20 65 72 72 6f | there's| an erro| |00003250| 72 20 74 68 65 20 75 73 | 65 72 20 6d 75 73 74 20 |r the us|er must | |00003260| 63 6f 72 72 65 63 74 2c | 20 72 65 74 75 72 6e 20 |correct,| return | |00003270| 66 61 6c 73 65 20 74 6f | 20 6b 65 65 70 20 64 69 |false to| keep di| |00003280| 61 6c 6f 67 20 6f 70 65 | 6e 2e 0a 20 20 76 61 72 |alog ope|n.. var| |00003290| 20 73 68 65 65 74 3b 0a | 20 20 66 6f 72 20 28 76 | sheet;.| for (v| |000032a0| 61 72 20 69 20 3d 20 30 | 3b 20 69 20 3c 20 6f 62 |ar i = 0|; i < ob| |000032b0| 6a 65 63 74 73 41 72 72 | 61 79 2e 6c 65 6e 67 74 |jectsArr|ay.lengt| |000032c0| 68 3b 20 69 2b 2b 29 20 | 7b 0a 20 20 20 20 69 66 |h; i++) |{. if| |000032d0| 20 28 6f 62 6a 65 63 74 | 73 41 72 72 61 79 5b 69 | (object|sArray[i| |000032e0| 5d 2e 6d 6f 64 69 66 69 | 65 64 20 26 26 20 21 6f |].modifi|ed && !o| |000032f0| 62 6a 65 63 74 73 41 72 | 72 61 79 5b 69 5d 2e 65 |bjectsAr|ray[i].e| |00003300| 78 74 65 72 6e 61 6c 20 | 26 26 0a 20 20 20 20 20 |xternal |&&. | |00003310| 20 20 20 6f 62 6a 65 63 | 74 73 41 72 72 61 79 5b | objec|tsArray[| |00003320| 69 5d 2e 74 79 70 65 20 | 3d 3d 20 53 48 45 45 54 |i].type |== SHEET| |00003330| 29 20 7b 0a 20 20 20 20 | 20 20 2f 2a 20 6c 65 74 |) {. | /* let| |00003340| 27 73 20 73 65 72 69 61 | 6c 69 7a 65 20 74 68 69 |'s seria|lize thi| |00003350| 73 20 73 74 79 6c 65 73 | 68 65 65 74 20 21 20 2a |s styles|heet ! *| |00003360| 2f 0a 20 20 20 20 20 20 | 73 68 65 65 74 20 3d 20 |/. |sheet = | |00003370| 6f 62 6a 65 63 74 73 41 | 72 72 61 79 5b 69 5d 2e |objectsA|rray[i].| |00003380| 63 73 73 45 6c 74 3b 0a | 20 20 20 20 20 20 69 66 |cssElt;.| if| |00003390| 20 28 73 68 65 65 74 2e | 6f 77 6e 65 72 4e 6f 64 | (sheet.|ownerNod| |000033a0| 65 2e 6e 6f 64 65 4e 61 | 6d 65 2e 74 6f 4c 6f 77 |e.nodeNa|me.toLow| |000033b0| 65 72 43 61 73 65 28 29 | 20 3d 3d 20 22 6c 69 6e |erCase()| == "lin| |000033c0| 6b 22 29 0a 20 20 20 20 | 20 20 20 20 53 65 72 69 |k"). | Seri| |000033d0| 61 6c 69 7a 65 45 78 74 | 65 72 6e 61 6c 53 68 65 |alizeExt|ernalShe| |000033e0| 65 74 28 73 68 65 65 74 | 2c 20 6e 75 6c 6c 29 3b |et(sheet|, null);| |000033f0| 0a 20 20 20 20 20 20 65 | 6c 73 65 0a 20 20 20 20 |. e|lse. | |00003400| 20 20 20 20 53 65 72 69 | 61 6c 69 7a 65 45 6d 62 | Seri|alizeEmb| |00003410| 65 64 64 65 64 53 68 65 | 65 74 28 73 68 65 65 74 |eddedShe|et(sheet| |00003420| 29 3b 0a 20 20 20 20 7d | 0a 20 20 7d 0a 20 20 53 |);. }|. }. S| |00003430| 61 76 65 57 69 6e 64 6f | 77 4c 6f 63 61 74 69 6f |aveWindo|wLocatio| |00003440| 6e 28 29 3b 0a 20 20 72 | 65 74 75 72 6e 20 74 72 |n();. r|eturn tr| |00003450| 75 65 3b 20 2f 2f 20 64 | 6f 20 63 6c 6f 73 65 20 |ue; // d|o close | |00003460| 74 68 65 20 77 69 6e 64 | 6f 77 0a 7d 0a 0a 2f 2f |the wind|ow.}..//| |00003470| 20 2a 20 72 65 6d 6f 76 | 65 73 20 61 6c 6c 20 74 | * remov|es all t| |00003480| 68 65 20 63 6f 6e 74 65 | 6e 74 20 69 6e 20 61 20 |he conte|nt in a | |00003490| 74 72 65 65 0a 2f 2f 20 | 20 20 70 61 72 61 6d 20 |tree.// | param | |000034a0| 58 55 4c 45 6c 65 6d 65 | 6e 74 20 73 68 65 65 74 |XULEleme|nt sheet| |000034b0| 73 54 72 65 65 0a 66 75 | 6e 63 74 69 6f 6e 20 43 |sTree.fu|nction C| |000034c0| 6c 65 61 6e 53 68 65 65 | 74 73 54 72 65 65 28 73 |leanShee|tsTree(s| |000034d0| 68 65 65 74 73 54 72 65 | 65 43 68 69 6c 64 72 65 |heetsTre|eChildre| |000034e0| 6e 29 0a 7b 0a 20 20 2f | 2f 20 77 65 20 6e 65 65 |n).{. /|/ we nee| |000034f0| 64 20 74 6f 20 63 6c 65 | 61 72 20 74 68 65 20 73 |d to cle|ar the s| |00003500| 65 6c 65 63 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |election| in the | |00003510| 74 72 65 65 20 6f 74 68 | 65 72 77 69 73 65 20 74 |tree oth|erwise t| |00003520| 68 65 20 6f 6e 73 65 6c | 65 63 74 0a 20 20 2f 2f |he onsel|ect. //| |00003530| 20 61 63 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 74 | action |on the t| |00003540| 72 65 65 20 77 69 6c 6c | 20 62 65 20 66 69 72 65 |ree will| be fire| |00003550| 64 20 77 68 65 6e 20 77 | 65 20 72 65 6d 6f 76 65 |d when w|e remove| |00003560| 64 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 20 65 |d the se|lected e| |00003570| 6e 74 72 79 0a 20 20 43 | 6c 65 61 72 54 72 65 65 |ntry. C|learTree| |00003580| 53 65 6c 65 63 74 69 6f | 6e 28 67 44 69 61 6c 6f |Selectio|n(gDialo| |00003590| 67 2e 73 68 65 65 74 73 | 54 72 65 65 29 3b 0a 0a |g.sheets|Tree);..| |000035a0| 20 20 76 61 72 20 65 6c | 74 20 3d 20 73 68 65 65 | var el|t = shee| |000035b0| 74 73 54 72 65 65 43 68 | 69 6c 64 72 65 6e 2e 66 |tsTreeCh|ildren.f| |000035c0| 69 72 73 74 43 68 69 6c | 64 3b 0a 20 20 77 68 69 |irstChil|d;. whi| |000035d0| 6c 65 20 28 65 6c 74 29 | 20 7b 0a 20 20 20 20 76 |le (elt)| {. v| |000035e0| 61 72 20 74 6d 70 20 3d | 20 65 6c 74 2e 6e 65 78 |ar tmp =| elt.nex| |000035f0| 74 53 69 62 6c 69 6e 67 | 3b 0a 20 20 20 20 73 68 |tSibling|;. sh| |00003600| 65 65 74 73 54 72 65 65 | 43 68 69 6c 64 72 65 6e |eetsTree|Children| |00003610| 2e 72 65 6d 6f 76 65 43 | 68 69 6c 64 28 65 6c 74 |.removeC|hild(elt| |00003620| 29 3b 0a 20 20 20 20 65 | 6c 74 20 3d 20 74 6d 70 |);. e|lt = tmp| |00003630| 3b 0a 20 20 7d 0a 7d 0a | 0a 66 75 6e 63 74 69 6f |;. }.}.|.functio| |00003640| 6e 20 41 64 64 53 68 65 | 65 74 45 6e 74 72 79 54 |n AddShe|etEntryT| |00003650| 6f 54 72 65 65 28 73 68 | 65 65 74 73 54 72 65 65 |oTree(sh|eetsTree| |00003660| 2c 20 6f 77 6e 65 72 4e | 6f 64 65 29 0a 7b 0a 20 |, ownerN|ode).{. | |00003670| 20 69 66 20 28 6f 77 6e | 65 72 4e 6f 64 65 2e 6e | if (own|erNode.n| |00003680| 6f 64 65 54 79 70 65 20 | 3d 3d 20 4e 6f 64 65 2e |odeType |== Node.| |00003690| 45 4c 45 4d 45 4e 54 5f | 4e 4f 44 45 29 20 7b 0a |ELEMENT_|NODE) {.| |000036a0| 20 20 20 20 76 61 72 20 | 6f 77 6e 65 72 54 61 67 | var |ownerTag| |000036b0| 20 20 3d 20 6f 77 6e 65 | 72 4e 6f 64 65 2e 6e 6f | = owne|rNode.no| |000036c0| 64 65 4e 61 6d 65 2e 74 | 6f 4c 6f 77 65 72 43 61 |deName.t|oLowerCa| |000036d0| 73 65 28 29 0a 20 20 20 | 20 76 61 72 20 72 65 6c |se(). | var rel| |000036e0| 54 79 70 65 20 20 20 3d | 20 6f 77 6e 65 72 4e 6f |Type =| ownerNo| |000036f0| 64 65 2e 67 65 74 41 74 | 74 72 69 62 75 74 65 28 |de.getAt|tribute(| |00003700| 22 72 65 6c 22 29 3b 0a | 20 20 20 20 69 66 20 28 |"rel");.| if (| |00003710| 72 65 6c 54 79 70 65 29 | 20 72 65 6c 54 79 70 65 |relType)| relType| |00003720| 20 3d 20 72 65 6c 54 79 | 70 65 2e 74 6f 4c 6f 77 | = relTy|pe.toLow| |00003730| 65 72 43 61 73 65 28 29 | 3b 0a 20 20 20 20 69 66 |erCase()|;. if| |00003740| 20 28 6f 77 6e 65 72 54 | 61 67 20 3d 3d 20 22 73 | (ownerT|ag == "s| |00003750| 74 79 6c 65 22 20 7c 7c | 0a 20 20 20 20 20 20 20 |tyle" |||. | |00003760| 20 28 6f 77 6e 65 72 54 | 61 67 20 3d 3d 20 22 6c | (ownerT|ag == "l| |00003770| 69 6e 6b 22 20 26 26 20 | 72 65 6c 54 79 70 65 2e |ink" && |relType.| |00003780| 69 6e 64 65 78 4f 66 28 | 22 73 74 79 6c 65 73 68 |indexOf(|"stylesh| |00003790| 65 65 74 22 29 20 21 3d | 20 2d 31 29 29 20 7b 0a |eet") !=| -1)) {.| |000037a0| 0a 20 20 20 20 20 20 76 | 61 72 20 74 72 65 65 69 |. v|ar treei| |000037b0| 74 65 6d 20 20 3d 20 64 | 6f 63 75 6d 65 6e 74 2e |tem = d|ocument.| |000037c0| 63 72 65 61 74 65 45 6c | 65 6d 65 6e 74 4e 53 28 |createEl|ementNS(| |000037d0| 58 55 4c 5f 4e 53 2c 20 | 22 74 72 65 65 69 74 65 |XUL_NS, |"treeite| |000037e0| 6d 22 29 3b 0a 20 20 20 | 20 20 20 76 61 72 20 74 |m");. | var t| |000037f0| 72 65 65 72 6f 77 20 20 | 20 3d 20 64 6f 63 75 6d |reerow | = docum| |00003800| 65 6e 74 2e 63 72 65 61 | 74 65 45 6c 65 6d 65 6e |ent.crea|teElemen| |00003810| 74 4e 53 28 58 55 4c 5f | 4e 53 2c 20 22 74 72 65 |tNS(XUL_|NS, "tre| |00003820| 65 72 6f 77 22 29 3b 0a | 20 20 20 20 20 20 76 61 |erow");.| va| |00003830| 72 20 74 72 65 65 63 65 | 6c 6c 20 20 3d 20 64 6f |r treece|ll = do| |00003840| 63 75 6d 65 6e 74 2e 63 | 72 65 61 74 65 45 6c 65 |cument.c|reateEle| |00003850| 6d 65 6e 74 4e 53 28 58 | 55 4c 5f 4e 53 2c 20 22 |mentNS(X|UL_NS, "| |00003860| 74 72 65 65 63 65 6c 6c | 22 29 3b 0a 0a 20 20 20 |treecell|");.. | |00003870| 20 20 20 2f 2f 20 77 68 | 61 74 20 6b 69 6e 64 20 | // wh|at kind | |00003880| 6f 66 20 6f 77 6e 65 72 | 20 6e 6f 64 65 20 64 6f |of owner| node do| |00003890| 20 77 65 20 68 61 76 65 | 20 68 65 72 65 20 3f 0a | we have| here ?.| |000038a0| 20 20 20 20 20 20 2f 2f | 20 61 20 73 74 79 6c 65 | //| a style| |000038b0| 20 65 6c 65 6d 65 6e 74 | 20 69 6e 64 69 63 61 74 | element| indicat| |000038c0| 65 73 20 61 6e 20 65 6d | 62 65 64 64 65 64 20 73 |es an em|bedded s| |000038d0| 74 79 6c 65 73 68 65 65 | 74 2c 0a 20 20 20 20 20 |tyleshee|t,. | |000038e0| 20 2f 2f 20 77 68 69 6c | 65 20 61 20 6c 69 6e 6b | // whil|e a link| |000038f0| 20 65 6c 65 6d 65 6e 74 | 20 69 6e 64 69 63 61 74 | element| indicat| |00003900| 65 73 20 61 6e 20 65 78 | 74 65 72 6e 61 6c 20 73 |es an ex|ternal s| |00003910| 74 79 6c 65 73 68 65 65 | 74 3b 0a 20 20 20 20 20 |tyleshee|t;. | |00003920| 20 2f 2f 20 74 68 65 20 | 63 61 73 65 20 6f 66 20 | // the |case of | |00003930| 61 6e 20 58 4d 4c 20 50 | 72 6f 63 65 73 73 69 6e |an XML P|rocessin| |00003940| 67 20 49 6e 73 74 72 75 | 63 74 69 6f 6e 20 69 73 |g Instru|ction is| |00003950| 20 6e 6f 74 20 68 61 6e | 64 6c 65 64 2c 20 77 65 | not han|dled, we| |00003960| 0a 20 20 20 20 20 20 2f | 2f 20 61 72 65 20 73 75 |. /|/ are su| |00003970| 70 70 6f 73 65 64 20 74 | 6f 20 62 65 20 69 6e 20 |pposed t|o be in | |00003980| 48 54 4d 4c 20 34 0a 20 | 20 20 20 20 20 76 61 72 |HTML 4. | var| |00003990| 20 65 78 74 65 72 6e 61 | 6c 20 3d 20 66 61 6c 73 | externa|l = fals| |000039a0| 65 3b 0a 20 20 20 20 20 | 20 69 66 20 28 6f 77 6e |e;. | if (own| |000039b0| 65 72 54 61 67 20 3d 3d | 20 22 73 74 79 6c 65 22 |erTag ==| "style"| |000039c0| 29 20 7b 0a 20 20 20 20 | 20 20 20 20 74 72 65 65 |) {. | tree| |000039d0| 63 65 6c 6c 2e 73 65 74 | 41 74 74 72 69 62 75 74 |cell.set|Attribut| |000039e0| 65 28 22 6c 61 62 65 6c | 22 2c 20 22 69 6e 74 65 |e("label|", "inte| |000039f0| 72 6e 61 6c 20 73 74 79 | 6c 65 73 68 65 65 74 22 |rnal sty|lesheet"| |00003a00| 29 3b 0a 20 20 20 20 20 | 20 7d 0a 20 20 20 20 20 |);. | }. | |00003a10| 20 65 6c 73 65 20 69 66 | 20 28 6f 77 6e 65 72 54 | else if| (ownerT| |00003a20| 61 67 20 3d 3d 20 22 6c | 69 6e 6b 22 29 20 7b 0a |ag == "l|ink") {.| |00003a30| 20 20 20 20 20 20 20 20 | 2f 2f 20 65 78 74 65 72 | |// exter| |00003a40| 6e 61 6c 20 73 74 79 6c | 65 73 68 65 65 74 2c 20 |nal styl|esheet, | |00003a50| 6c 65 74 27 73 20 70 72 | 65 73 65 6e 74 20 69 74 |let's pr|esent it| |00003a60| 73 20 55 52 4c 20 74 6f | 20 75 73 65 72 0a 20 20 |s URL to| user. | |00003a70| 20 20 20 20 20 20 74 72 | 65 65 63 65 6c 6c 2e 73 | tr|eecell.s| |00003a80| 65 74 41 74 74 72 69 62 | 75 74 65 28 22 6c 61 62 |etAttrib|ute("lab| |00003a90| 65 6c 22 2c 20 6f 77 6e | 65 72 4e 6f 64 65 2e 68 |el", own|erNode.h| |00003aa0| 72 65 66 29 3b 0a 20 20 | 20 20 20 20 20 20 65 78 |ref);. | ex| |00003ab0| 74 65 72 6e 61 6c 20 3d | 20 74 72 75 65 3b 0a 20 |ternal =| true;. | |00003ac0| 20 20 20 20 20 20 20 69 | 66 20 28 20 2f 28 5c 77 | i|f ( /(\w| |00003ad0| 2a 29 3a 2e 2a 2f 2e 74 | 65 73 74 28 6f 77 6e 65 |*):.*/.t|est(owne| |00003ae0| 72 4e 6f 64 65 2e 68 72 | 65 66 29 20 29 20 7b 0a |rNode.hr|ef) ) {.| |00003af0| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 52 65 | | if (Re| |00003b00| 67 45 78 70 2e 24 31 20 | 3d 3d 20 22 66 69 6c 65 |gExp.$1 |== "file| |00003b10| 22 29 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |") {. | | |00003b20| 20 65 78 74 65 72 6e 61 | 6c 20 3d 20 66 61 6c 73 | externa|l = fals| |00003b30| 65 3b 0a 20 20 20 20 20 | 20 20 20 20 20 7d 0a 20 |e;. | }. | |00003b40| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 20 | }|. | |00003b50| 20 65 6c 73 65 0a 20 20 | 20 20 20 20 20 20 20 20 | else. | | |00003b60| 65 78 74 65 72 6e 61 6c | 20 3d 20 66 61 6c 73 65 |external| = false| |00003b70| 3b 0a 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 |;. |}. | |00003b80| 2f 2f 20 61 64 64 20 61 | 20 6e 65 77 20 65 6e 74 |// add a| new ent| |00003b90| 72 79 20 74 6f 20 74 68 | 65 20 74 72 65 65 0a 20 |ry to th|e tree. | |00003ba0| 20 20 20 20 20 76 61 72 | 20 6f 20 3d 20 6e 65 77 | var| o = new| |00003bb0| 4f 62 6a 65 63 74 28 20 | 74 72 65 65 69 74 65 6d |Object( |treeitem| |00003bc0| 2c 20 65 78 74 65 72 6e | 61 6c 2c 20 53 48 45 45 |, extern|al, SHEE| |00003bd0| 54 2c 20 6f 77 6e 65 72 | 4e 6f 64 65 2e 73 68 65 |T, owner|Node.she| |00003be0| 65 74 2c 20 66 61 6c 73 | 65 2c 20 30 20 29 3b 0a |et, fals|e, 0 );.| |00003bf0| 20 20 20 20 20 20 50 75 | 73 68 49 6e 4f 62 6a 65 | Pu|shInObje| |00003c00| 63 74 73 41 72 72 61 79 | 28 6f 29 3b 0a 20 20 20 |ctsArray|(o);. | |00003c10| 20 20 20 0a 20 20 20 20 | 20 20 74 72 65 65 72 6f | . | treero| |00003c20| 77 2e 61 70 70 65 6e 64 | 43 68 69 6c 64 28 74 72 |w.append|Child(tr| |00003c30| 65 65 63 65 6c 6c 29 3b | 0a 20 20 20 20 20 20 74 |eecell);|. t| |00003c40| 72 65 65 69 74 65 6d 2e | 61 70 70 65 6e 64 43 68 |reeitem.|appendCh| |00003c50| 69 6c 64 28 74 72 65 65 | 72 6f 77 29 3b 0a 20 20 |ild(tree|row);. | |00003c60| 20 20 20 20 74 72 65 65 | 69 74 65 6d 2e 73 65 74 | tree|item.set| |00003c70| 41 74 74 72 69 62 75 74 | 65 28 22 63 6f 6e 74 61 |Attribut|e("conta| |00003c80| 69 6e 65 72 22 2c 20 22 | 74 72 75 65 22 29 3b 0a |iner", "|true");.| |00003c90| 20 20 20 20 20 20 2f 2f | 20 61 64 64 20 65 6e 74 | //| add ent| |00003ca0| 69 65 73 20 74 6f 20 74 | 68 65 20 74 72 65 65 20 |ies to t|he tree | |00003cb0| 66 6f 72 20 74 68 65 20 | 72 75 6c 65 73 20 69 6e |for the |rules in| |00003cc0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 74 79 | the cur|rent sty| |00003cd0| 6c 65 73 68 65 65 74 0a | 20 20 20 20 20 20 76 61 |lesheet.| va| |00003ce0| 72 20 72 75 6c 65 73 20 | 3d 20 6e 75 6c 6c 3b 0a |r rules |= null;.| |00003cf0| 20 20 20 20 20 20 69 66 | 20 28 6f 77 6e 65 72 4e | if| (ownerN| |00003d00| 6f 64 65 2e 73 68 65 65 | 74 29 0a 20 20 20 20 20 |ode.shee|t). | |00003d10| 20 20 20 72 75 6c 65 73 | 20 3d 20 6f 77 6e 65 72 | rules| = owner| |00003d20| 4e 6f 64 65 2e 73 68 65 | 65 74 2e 63 73 73 52 75 |Node.she|et.cssRu| |00003d30| 6c 65 73 3b 0a 20 20 20 | 20 20 20 41 64 64 52 75 |les;. | AddRu| |00003d40| 6c 65 73 54 6f 54 72 65 | 65 63 68 69 6c 64 72 65 |lesToTre|echildre| |00003d50| 6e 28 74 72 65 65 69 74 | 65 6d 2c 20 72 75 6c 65 |n(treeit|em, rule| |00003d60| 73 2c 20 65 78 74 65 72 | 6e 61 6c 2c 20 31 29 3b |s, exter|nal, 1);| |00003d70| 0a 0a 20 20 20 20 20 20 | 73 68 65 65 74 73 54 72 |.. |sheetsTr| |00003d80| 65 65 2e 61 70 70 65 6e | 64 43 68 69 6c 64 28 74 |ee.appen|dChild(t| |00003d90| 72 65 65 69 74 65 6d 29 | 3b 0a 20 20 20 20 7d 0a |reeitem)|;. }.| |00003da0| 20 20 7d 0a 7d 0a 0a 66 | 75 6e 63 74 69 6f 6e 20 | }.}..f|unction | |00003db0| 50 75 73 68 49 6e 4f 62 | 6a 65 63 74 73 41 72 72 |PushInOb|jectsArr| |00003dc0| 61 79 28 6f 29 0a 7b 0a | 20 20 69 66 20 28 67 49 |ay(o).{.| if (gI| |00003dd0| 6e 73 65 72 74 49 6e 64 | 65 78 20 3d 3d 20 2d 31 |nsertInd|ex == -1| |00003de0| 29 0a 20 20 20 20 6f 62 | 6a 65 63 74 73 41 72 72 |). ob|jectsArr| |00003df0| 61 79 2e 70 75 73 68 28 | 6f 29 3b 0a 20 20 65 6c |ay.push(|o);. el| |00003e00| 73 65 20 7b 0a 20 20 20 | 20 6f 62 6a 65 63 74 73 |se {. | objects| |00003e10| 41 72 72 61 79 2e 73 70 | 6c 69 63 65 28 67 49 6e |Array.sp|lice(gIn| |00003e20| 73 65 72 74 49 6e 64 65 | 78 2c 20 30 2c 20 6f 29 |sertInde|x, 0, o)| |00003e30| 3b 0a 20 20 20 20 67 49 | 6e 73 65 72 74 49 6e 64 |;. gI|nsertInd| |00003e40| 65 78 2b 2b 3b 0a 20 20 | 7d 0a 7d 0a 0a 2f 2f 20 |ex++;. |}.}..// | |00003e50| 2a 20 70 6f 70 75 6c 61 | 74 65 73 20 74 68 65 20 |* popula|tes the | |00003e60| 74 72 65 65 20 69 6e 20 | 74 68 65 20 64 69 61 6c |tree in |the dial| |00003e70| 6f 67 20 77 69 74 68 20 | 65 6e 74 72 69 65 73 0a |og with |entries.| |00003e80| 2f 2f 20 20 20 63 6f 72 | 72 65 73 70 6f 6e 64 69 |// cor|respondi| |00003e90| 6e 67 20 74 6f 20 61 6c | 6c 20 73 74 79 6c 65 73 |ng to al|l styles| |00003ea0| 68 65 65 74 73 20 61 6e | 64 20 63 73 73 20 72 75 |heets an|d css ru| |00003eb0| 6c 65 73 20 61 74 74 61 | 63 68 65 64 20 74 6f 0a |les atta|ched to.| |00003ec0| 2f 2f 20 20 20 64 6f 63 | 75 6d 65 6e 74 0a 2f 2f |// doc|ument.//| |00003ed0| 20 20 20 70 61 72 61 6d | 20 58 55 4c 45 6c 65 6d | param| XULElem| |00003ee0| 65 6e 74 20 73 68 65 65 | 74 73 54 72 65 65 0a 66 |ent shee|tsTree.f| |00003ef0| 75 6e 63 74 69 6f 6e 20 | 49 6e 69 74 53 68 65 65 |unction |InitShee| |00003f00| 74 73 54 72 65 65 28 73 | 68 65 65 74 73 54 72 65 |tsTree(s|heetsTre| |00003f10| 65 29 0a 7b 0a 20 20 2f | 2f 20 72 65 6d 6f 76 65 |e).{. /|/ remove| |00003f20| 20 61 6c 6c 20 65 6e 74 | 72 69 65 73 20 69 6e 20 | all ent|ries in | |00003f30| 74 68 65 20 74 72 65 65 | 0a 20 20 43 6c 65 61 6e |the tree|. Clean| |00003f40| 53 68 65 65 74 73 54 72 | 65 65 28 73 68 65 65 74 |SheetsTr|ee(sheet| |00003f50| 73 54 72 65 65 29 3b 0a | 20 20 2f 2f 20 4c 6f 6f |sTree);.| // Loo| |00003f60| 6b 20 66 6f 72 20 74 68 | 65 20 73 74 79 6c 65 73 |k for th|e styles| |00003f70| 68 65 65 74 73 20 61 74 | 74 61 63 68 65 64 20 74 |heets at|tached t| |00003f80| 6f 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 6f |o the cu|rrent do| |00003f90| 63 75 6d 65 6e 74 0a 20 | 20 2f 2f 20 47 65 74 20 |cument. | // Get | |00003fa0| 74 68 65 6d 20 66 72 6f | 6d 20 74 68 65 20 53 54 |them fro|m the ST| |00003fb0| 59 4c 45 20 61 6e 64 20 | 4c 49 4e 4b 20 65 6c 65 |YLE and |LINK ele| |00003fc0| 6d 65 6e 74 73 20 62 65 | 63 61 75 73 65 20 6f 66 |ments be|cause of| |00003fd0| 20 61 73 79 6e 63 20 73 | 68 65 65 74 20 6c 6f 61 | async s|heet loa| |00003fe0| 64 69 6e 67 20 3a 0a 20 | 20 2f 2f 20 74 68 65 20 |ding :. | // the | |00003ff0| 4c 49 4e 4b 20 65 6c 65 | 6d 65 6e 74 20 69 73 20 |LINK ele|ment is | |00004000| 61 6c 77 61 79 73 20 68 | 65 72 65 20 77 68 69 6c |always h|ere whil| |00004010| 65 20 74 68 65 20 63 6f | 72 72 65 73 70 6f 6e 64 |e the co|rrespond| |00004020| 69 6e 67 20 73 68 65 65 | 74 20 6d 69 67 68 74 20 |ing shee|t might | |00004030| 62 65 0a 20 20 2f 2f 20 | 64 65 6c 61 79 65 64 20 |be. // |delayed | |00004040| 62 79 20 6e 65 74 77 6f | 72 6b 0a 20 20 76 61 72 |by netwo|rk. var| |00004050| 20 68 65 61 64 4e 6f 64 | 65 20 3d 20 47 65 74 48 | headNod|e = GetH| |00004060| 65 61 64 45 6c 65 6d 65 | 6e 74 28 29 3b 0a 20 20 |eadEleme|nt();. | |00004070| 69 66 20 28 20 68 65 61 | 64 4e 6f 64 65 20 26 26 |if ( hea|dNode &&| |00004080| 20 68 65 61 64 4e 6f 64 | 65 2e 68 61 73 43 68 69 | headNod|e.hasChi| |00004090| 6c 64 4e 6f 64 65 73 28 | 29 20 29 20 7b 0a 20 20 |ldNodes(|) ) {. | |000040a0| 20 20 76 61 72 20 73 73 | 6e 20 3d 20 68 65 61 64 | var ss|n = head| |000040b0| 4e 6f 64 65 2e 63 68 69 | 6c 64 4e 6f 64 65 73 2e |Node.chi|ldNodes.| |000040c0| 6c 65 6e 67 74 68 3b 0a | 20 20 20 20 6f 62 6a 65 |length;.| obje| |000040d0| 63 74 73 41 72 72 61 79 | 20 3d 20 6e 65 77 20 41 |ctsArray| = new A| |000040e0| 72 72 61 79 28 29 3b 0a | 20 20 20 20 69 66 20 28 |rray();.| if (| |000040f0| 73 73 6e 29 20 7b 0a 20 | 20 20 20 20 20 76 61 72 |ssn) {. | var| |00004100| 20 69 3b 0a 20 20 20 20 | 20 20 67 49 6e 73 65 72 | i;. | gInser| |00004110| 74 49 6e 64 65 78 20 3d | 20 2d 31 3b 0a 20 20 20 |tIndex =| -1;. | |00004120| 20 20 20 66 6f 72 20 28 | 69 3d 30 3b 20 69 3c 73 | for (|i=0; i<s| |00004130| 73 6e 3b 20 69 2b 2b 29 | 20 7b 0a 20 20 20 20 20 |sn; i++)| {. | |00004140| 20 20 20 76 61 72 20 6f | 77 6e 65 72 4e 6f 64 65 | var o|wnerNode| |00004150| 20 3d 20 68 65 61 64 4e | 6f 64 65 2e 63 68 69 6c | = headN|ode.chil| |00004160| 64 4e 6f 64 65 73 5b 69 | 5d 3b 0a 20 20 20 20 20 |dNodes[i|];. | |00004170| 20 20 20 41 64 64 53 68 | 65 65 74 45 6e 74 72 79 | AddSh|eetEntry| |00004180| 54 6f 54 72 65 65 28 73 | 68 65 65 74 73 54 72 65 |ToTree(s|heetsTre| |00004190| 65 2c 20 6f 77 6e 65 72 | 4e 6f 64 65 29 3b 20 0a |e, owner|Node); .| |000041a0| 20 20 20 20 20 20 7d 0a | 20 20 20 20 7d 0a 20 20 | }.| }. | |000041b0| 7d 0a 7d 0a 0a 2f 2f 20 | 2a 20 63 72 65 61 74 65 |}.}..// |* create| |000041c0| 20 61 20 6e 65 77 20 22 | 6f 62 6a 65 63 74 22 20 | a new "|object" | |000041d0| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |correspo|nding to| |000041e0| 20 61 6e 20 65 6e 74 72 | 79 20 69 6e 20 74 68 65 | an entr|y in the| |000041f0| 20 74 72 65 65 0a 2f 2f | 20 20 20 75 6e 66 6f 72 | tree.//| unfor| |00004200| 74 75 6e 61 74 65 6c 79 | 2c 20 69 74 27 73 20 73 |tunately|, it's s| |00004210| 74 69 6c 6c 20 69 6d 70 | 6f 73 73 69 62 6c 65 20 |till imp|ossible | |00004220| 74 6f 20 61 74 74 61 63 | 68 20 61 20 4a 53 20 6f |to attac|h a JS o| |00004230| 62 6a 65 63 74 20 74 6f | 0a 2f 2f 20 20 20 61 20 |bject to|.// a | |00004240| 74 72 65 65 63 65 6c 6c | 20 3a 2d 28 0a 2f 2f 20 |treecell| :-(.// | |00004250| 20 20 70 61 72 61 6d 20 | 58 55 4c 45 6c 65 6d 65 | param |XULEleme| |00004260| 6e 74 20 78 75 6c 45 6c | 74 0a 2f 2f 20 20 20 70 |nt xulEl|t.// p| |00004270| 61 72 61 6d 20 62 6f 6f | 6c 65 61 6e 20 65 78 74 |aram boo|lean ext| |00004280| 65 72 6e 61 6c 0a 2f 2f | 20 20 20 70 61 72 61 6d |ernal.//| param| |00004290| 20 69 6e 74 65 67 65 72 | 20 74 79 70 65 0a 2f 2f | integer| type.//| |000042a0| 20 20 20 70 61 72 61 6d | 20 28 44 4f 4d 4e 6f 64 | param| (DOMNod| |000042b0| 65 7c 44 4f 4d 43 53 53 | 53 74 79 6c 65 53 68 65 |e|DOMCSS|StyleShe| |000042c0| 65 74 7c 44 4f 4d 43 53 | 53 52 75 6c 65 29 20 63 |et|DOMCS|SRule) c| |000042d0| 73 73 45 6c 74 0a 2f 2f | 20 20 20 70 61 72 61 6d |ssElt.//| param| |000042e0| 20 62 6f 6f 6c 65 61 6e | 20 6d 6f 64 69 66 69 65 | boolean| modifie| |000042f0| 64 0a 2f 2f 20 20 20 70 | 61 72 61 6d 20 69 6e 74 |d.// p|aram int| |00004300| 65 67 65 72 20 64 65 70 | 74 68 0a 66 75 6e 63 74 |eger dep|th.funct| |00004310| 69 6f 6e 20 6e 65 77 4f | 62 6a 65 63 74 28 20 78 |ion newO|bject( x| |00004320| 75 6c 45 6c 74 2c 20 65 | 78 74 65 72 6e 61 6c 2c |ulElt, e|xternal,| |00004330| 20 74 79 70 65 2c 20 63 | 73 73 45 6c 74 2c 20 6d | type, c|ssElt, m| |00004340| 6f 64 69 66 69 65 64 2c | 20 64 65 70 74 68 29 0a |odified,| depth).| |00004350| 7b 0a 20 20 72 65 74 75 | 72 6e 20 7b 78 75 6c 45 |{. retu|rn {xulE| |00004360| 6c 74 3a 78 75 6c 45 6c | 74 2c 0a 20 20 20 20 20 |lt:xulEl|t,. | |00004370| 20 20 20 20 20 65 78 74 | 65 72 6e 61 6c 3a 65 78 | ext|ernal:ex| |00004380| 74 65 72 6e 61 6c 2c 0a | 20 20 20 20 20 20 20 20 |ternal,.| | |00004390| 20 20 74 79 70 65 3a 74 | 79 70 65 2c 0a 20 20 20 | type:t|ype,. | |000043a0| 20 20 20 20 20 20 20 63 | 73 73 45 6c 74 3a 63 73 | c|ssElt:cs| |000043b0| 73 45 6c 74 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |sElt,. | | |000043c0| 6d 6f 64 69 66 69 65 64 | 3a 6d 6f 64 69 66 69 65 |modified|:modifie| |000043d0| 64 2c 0a 20 20 20 20 20 | 20 20 20 20 20 64 65 70 |d,. | dep| |000043e0| 74 68 3a 64 65 70 74 68 | 7d 3b 0a 7d 0a 0a 66 75 |th:depth|};.}..fu| |000043f0| 6e 63 74 69 6f 6e 20 41 | 64 64 53 74 79 6c 65 52 |nction A|ddStyleR| |00004400| 75 6c 65 54 6f 54 72 65 | 65 43 68 69 6c 64 72 65 |uleToTre|eChildre| |00004410| 6e 28 72 75 6c 65 2c 20 | 65 78 74 65 72 6e 61 6c |n(rule, |external| |00004420| 2c 20 64 65 70 74 68 29 | 0a 7b 0a 20 20 76 61 72 |, depth)|.{. var| |00004430| 20 73 75 62 74 72 65 65 | 69 74 65 6d 20 20 3d 20 | subtree|item = | |00004440| 64 6f 63 75 6d 65 6e 74 | 2e 63 72 65 61 74 65 45 |document|.createE| |00004450| 6c 65 6d 65 6e 74 4e 53 | 28 58 55 4c 5f 4e 53 2c |lementNS|(XUL_NS,| |00004460| 20 22 74 72 65 65 69 74 | 65 6d 22 29 3b 0a 20 20 | "treeit|em");. | |00004470| 76 61 72 20 73 75 62 74 | 72 65 65 72 6f 77 20 20 |var subt|reerow | |00004480| 20 3d 20 64 6f 63 75 6d | 65 6e 74 2e 63 72 65 61 | = docum|ent.crea| |00004490| 74 65 45 6c 65 6d 65 6e | 74 4e 53 28 58 55 4c 5f |teElemen|tNS(XUL_| |000044a0| 4e 53 2c 20 22 74 72 65 | 65 72 6f 77 22 29 3b 0a |NS, "tre|erow");.| |000044b0| 20 20 76 61 72 20 73 75 | 62 74 72 65 65 63 65 6c | var su|btreecel| |000044c0| 6c 20 20 3d 20 64 6f 63 | 75 6d 65 6e 74 2e 63 72 |l = doc|ument.cr| |000044d0| 65 61 74 65 45 6c 65 6d | 65 6e 74 4e 53 28 58 55 |eateElem|entNS(XU| |000044e0| 4c 5f 4e 53 2c 20 22 74 | 72 65 65 63 65 6c 6c 22 |L_NS, "t|reecell"| |000044f0| 29 3b 0a 20 20 2f 2f 20 | 73 68 6f 77 20 74 68 65 |);. // |show the| |00004500| 20 73 65 6c 65 63 74 6f | 72 20 61 74 74 61 63 68 | selecto|r attach| |00004510| 65 64 20 74 6f 20 74 68 | 65 20 72 75 6c 65 0a 20 |ed to th|e rule. | |00004520| 20 73 75 62 74 72 65 65 | 63 65 6c 6c 2e 73 65 74 | subtree|cell.set| |00004530| 41 74 74 72 69 62 75 74 | 65 28 22 6c 61 62 65 6c |Attribut|e("label| |00004540| 22 2c 20 72 75 6c 65 2e | 73 65 6c 65 63 74 6f 72 |", rule.|selector| |00004550| 54 65 78 74 29 3b 0a 20 | 20 76 61 72 20 6f 20 3d |Text);. | var o =| |00004560| 20 6e 65 77 4f 62 6a 65 | 63 74 28 20 73 75 62 74 | newObje|ct( subt| |00004570| 72 65 65 69 74 65 6d 2c | 20 65 78 74 65 72 6e 61 |reeitem,| externa| |00004580| 6c 2c 20 53 54 59 4c 45 | 5f 52 55 4c 45 2c 20 72 |l, STYLE|_RULE, r| |00004590| 75 6c 65 2c 20 66 61 6c | 73 65 2c 20 64 65 70 74 |ule, fal|se, dept| |000045a0| 68 20 29 3b 0a 20 20 50 | 75 73 68 49 6e 4f 62 6a |h );. P|ushInObj| |000045b0| 65 63 74 73 41 72 72 61 | 79 28 6f 29 3b 0a 20 20 |ectsArra|y(o);. | |000045c0| 69 66 20 28 65 78 74 65 | 72 6e 61 6c 29 20 7b 0a |if (exte|rnal) {.| |000045d0| 20 20 20 20 73 75 62 74 | 72 65 65 63 65 6c 6c 2e | subt|reecell.| |000045e0| 73 65 74 41 74 74 72 69 | 62 75 74 65 28 22 70 72 |setAttri|bute("pr| |000045f0| 6f 70 65 72 74 69 65 73 | 22 2c 20 22 65 78 74 65 |operties|", "exte| |00004600| 72 6e 61 6c 22 29 3b 0a | 20 20 7d 0a 20 20 73 75 |rnal");.| }. su| |00004610| 62 74 72 65 65 72 6f 77 | 2e 61 70 70 65 6e 64 43 |btreerow|.appendC| |00004620| 68 69 6c 64 28 73 75 62 | 74 72 65 65 63 65 6c 6c |hild(sub|treecell| |00004630| 29 3b 0a 20 20 73 75 62 | 74 72 65 65 69 74 65 6d |);. sub|treeitem| |00004640| 2e 61 70 70 65 6e 64 43 | 68 69 6c 64 28 73 75 62 |.appendC|hild(sub| |00004650| 74 72 65 65 72 6f 77 29 | 3b 0a 0a 20 20 72 65 74 |treerow)|;.. ret| |00004660| 75 72 6e 20 73 75 62 74 | 72 65 65 69 74 65 6d 3b |urn subt|reeitem;| |00004670| 0a 7d 0a 0a 66 75 6e 63 | 74 69 6f 6e 20 41 64 64 |.}..func|tion Add| |00004680| 50 61 67 65 52 75 6c 65 | 54 6f 54 72 65 65 43 68 |PageRule|ToTreeCh| |00004690| 69 6c 64 72 65 6e 28 72 | 75 6c 65 2c 20 65 78 74 |ildren(r|ule, ext| |000046a0| 65 72 6e 61 6c 2c 20 64 | 65 70 74 68 29 0a 7b 0a |ernal, d|epth).{.| |000046b0| 20 20 76 61 72 20 73 75 | 62 74 72 65 65 69 74 65 | var su|btreeite| |000046c0| 6d 20 20 3d 20 64 6f 63 | 75 6d 65 6e 74 2e 63 72 |m = doc|ument.cr| |000046d0| 65 61 74 65 45 6c 65 6d | 65 6e 74 4e 53 28 58 55 |eateElem|entNS(XU| |000046e0| 4c 5f 4e 53 2c 20 22 74 | 72 65 65 69 74 65 6d 22 |L_NS, "t|reeitem"| |000046f0| 29 3b 0a 20 20 76 61 72 | 20 73 75 62 74 72 65 65 |);. var| subtree| |00004700| 72 6f 77 20 20 20 3d 20 | 64 6f 63 75 6d 65 6e 74 |row = |document| |00004710| 2e 63 72 65 61 74 65 45 | 6c 65 6d 65 6e 74 4e 53 |.createE|lementNS| |00004720| 28 58 55 4c 5f 4e 53 2c | 20 22 74 72 65 65 72 6f |(XUL_NS,| "treero| |00004730| 77 22 29 3b 0a 20 20 76 | 61 72 20 73 75 62 74 72 |w");. v|ar subtr| |00004740| 65 65 63 65 6c 6c 20 20 | 3d 20 64 6f 63 75 6d 65 |eecell |= docume| |00004750| 6e 74 2e 63 72 65 61 74 | 65 45 6c 65 6d 65 6e 74 |nt.creat|eElement| |00004760| 4e 53 28 58 55 4c 5f 4e | 53 2c 20 22 74 72 65 65 |NS(XUL_N|S, "tree| |00004770| 63 65 6c 6c 22 29 3b 0a | 20 20 2f 2f 20 73 68 6f |cell");.| // sho| |00004780| 77 20 74 68 65 20 73 65 | 6c 65 63 74 6f 72 20 61 |w the se|lector a| |00004790| 74 74 61 63 68 65 64 20 | 74 6f 20 74 68 65 20 72 |ttached |to the r| |000047a0| 75 6c 65 0a 20 20 73 75 | 62 74 72 65 65 63 65 6c |ule. su|btreecel| |000047b0| 6c 2e 73 65 74 41 74 74 | 72 69 62 75 74 65 28 22 |l.setAtt|ribute("| |000047c0| 6c 61 62 65 6c 22 2c 20 | 22 40 70 61 67 65 20 22 |label", |"@page "| |000047d0| 20 2b 20 72 75 6c 65 2e | 73 65 6c 65 63 74 6f 72 | + rule.|selector| |000047e0| 54 65 78 74 29 3b 0a 20 | 20 76 61 72 20 6f 20 3d |Text);. | var o =| |000047f0| 20 6e 65 77 4f 62 6a 65 | 63 74 28 20 73 75 62 74 | newObje|ct( subt| |00004800| 72 65 65 69 74 65 6d 2c | 20 65 78 74 65 72 6e 61 |reeitem,| externa| |00004810| 6c 2c 20 50 41 47 45 5f | 52 55 4c 45 2c 20 72 75 |l, PAGE_|RULE, ru| |00004820| 6c 65 2c 20 66 61 6c 73 | 65 2c 20 64 65 70 74 68 |le, fals|e, depth| |00004830| 20 29 3b 0a 20 20 50 75 | 73 68 49 6e 4f 62 6a 65 | );. Pu|shInObje| |00004840| 63 74 73 41 72 72 61 79 | 28 6f 29 3b 0a 20 20 69 |ctsArray|(o);. i| |00004850| 66 20 28 65 78 74 65 72 | 6e 61 6c 29 20 7b 0a 20 |f (exter|nal) {. | |00004860| 20 20 20 73 75 62 74 72 | 65 65 63 65 6c 6c 2e 73 | subtr|eecell.s| |00004870| 65 74 41 74 74 72 69 62 | 75 74 65 28 22 70 72 6f |etAttrib|ute("pro| |00004880| 70 65 72 74 69 65 73 22 | 2c 20 22 65 78 74 65 72 |perties"|, "exter| |00004890| 6e 61 6c 22 29 3b 0a 20 | 20 7d 0a 20 20 73 75 62 |nal");. | }. sub| |000048a0| 74 72 65 65 72 6f 77 2e | 61 70 70 65 6e 64 43 68 |treerow.|appendCh| |000048b0| 69 6c 64 28 73 75 62 74 | 72 65 65 63 65 6c 6c 29 |ild(subt|reecell)| |000048c0| 3b 0a 20 20 73 75 62 74 | 72 65 65 69 74 65 6d 2e |;. subt|reeitem.| |000048d0| 61 70 70 65 6e 64 43 68 | 69 6c 64 28 73 75 62 74 |appendCh|ild(subt| |000048e0| 72 65 65 72 6f 77 29 3b | 0a 0a 20 20 72 65 74 75 |reerow);|.. retu| |000048f0| 72 6e 20 73 75 62 74 72 | 65 65 69 74 65 6d 3b 0a |rn subtr|eeitem;.| |00004900| 7d 0a 0a 66 75 6e 63 74 | 69 6f 6e 20 41 64 64 49 |}..funct|ion AddI| |00004910| 6d 70 6f 72 74 52 75 6c | 65 54 6f 54 72 65 65 43 |mportRul|eToTreeC| |00004920| 68 69 6c 64 72 65 6e 28 | 72 75 6c 65 2c 20 65 78 |hildren(|rule, ex| |00004930| 74 65 72 6e 61 6c 2c 20 | 64 65 70 74 68 29 0a 7b |ternal, |depth).{| |00004940| 0a 20 20 76 61 72 20 73 | 75 62 74 72 65 65 69 74 |. var s|ubtreeit| |00004950| 65 6d 20 20 3d 20 64 6f | 63 75 6d 65 6e 74 2e 63 |em = do|cument.c| |00004960| 72 65 61 74 65 45 6c 65 | 6d 65 6e 74 4e 53 28 58 |reateEle|mentNS(X| |00004970| 55 4c 5f 4e 53 2c 20 22 | 74 72 65 65 69 74 65 6d |UL_NS, "|treeitem| |00004980| 22 29 3b 0a 20 20 76 61 | 72 20 73 75 62 74 72 65 |");. va|r subtre| |00004990| 65 72 6f 77 20 20 20 3d | 20 64 6f 63 75 6d 65 6e |erow =| documen| |000049a0| 74 2e 63 72 65 61 74 65 | 45 6c 65 6d 65 6e 74 4e |t.create|ElementN| |000049b0| 53 28 58 55 4c 5f 4e 53 | 2c 20 22 74 72 65 65 72 |S(XUL_NS|, "treer| |000049c0| 6f 77 22 29 3b 0a 20 20 | 76 61 72 20 73 75 62 74 |ow");. |var subt| |000049d0| 72 65 65 63 65 6c 6c 20 | 20 3d 20 64 6f 63 75 6d |reecell | = docum| |000049e0| 65 6e 74 2e 63 72 65 61 | 74 65 45 6c 65 6d 65 6e |ent.crea|teElemen| |000049f0| 74 4e 53 28 58 55 4c 5f | 4e 53 2c 20 22 74 72 65 |tNS(XUL_|NS, "tre| |00004a00| 65 63 65 6c 6c 22 29 3b | 0a 20 20 2f 2f 20 73 68 |ecell");|. // sh| |00004a10| 6f 77 20 22 40 69 6d 70 | 6f 72 74 22 20 61 6e 64 |ow "@imp|ort" and| |00004a20| 20 74 68 65 20 55 52 4c | 0a 20 20 73 75 62 74 72 | the URL|. subtr| |00004a30| 65 65 63 65 6c 6c 2e 73 | 65 74 41 74 74 72 69 62 |eecell.s|etAttrib| |00004a40| 75 74 65 28 22 6c 61 62 | 65 6c 22 2c 20 22 40 69 |ute("lab|el", "@i| |00004a50| 6d 70 6f 72 74 20 22 2b | 72 75 6c 65 2e 68 72 65 |mport "+|rule.hre| |00004a60| 66 2c 20 65 78 74 65 72 | 6e 61 6c 29 3b 0a 20 20 |f, exter|nal);. | |00004a70| 76 61 72 20 6f 20 3d 20 | 6e 65 77 4f 62 6a 65 63 |var o = |newObjec| |00004a80| 74 28 20 73 75 62 74 72 | 65 65 69 74 65 6d 2c 20 |t( subtr|eeitem, | |00004a90| 65 78 74 65 72 6e 61 6c | 2c 20 49 4d 50 4f 52 54 |external|, IMPORT| |00004aa0| 5f 52 55 4c 45 2c 20 72 | 75 6c 65 2c 20 66 61 6c |_RULE, r|ule, fal| |00004ab0| 73 65 2c 20 64 65 70 74 | 68 20 29 3b 0a 20 20 50 |se, dept|h );. P| |00004ac0| 75 73 68 49 6e 4f 62 6a | 65 63 74 73 41 72 72 61 |ushInObj|ectsArra| |00004ad0| 79 28 6f 29 3b 0a 20 20 | 69 66 20 28 65 78 74 65 |y(o);. |if (exte| |00004ae0| 72 6e 61 6c 29 20 7b 0a | 20 20 20 20 73 75 62 74 |rnal) {.| subt| |00004af0| 72 65 65 63 65 6c 6c 2e | 73 65 74 41 74 74 72 69 |reecell.|setAttri| |00004b00| 62 75 74 65 28 22 70 72 | 6f 70 65 72 74 69 65 73 |bute("pr|operties| |00004b10| 22 2c 20 22 65 78 74 65 | 72 6e 61 6c 22 29 3b 0a |", "exte|rnal");.| |00004b20| 20 20 7d 0a 20 20 73 75 | 62 74 72 65 65 72 6f 77 | }. su|btreerow| |00004b30| 2e 61 70 70 65 6e 64 43 | 68 69 6c 64 28 73 75 62 |.appendC|hild(sub| |00004b40| 74 72 65 65 63 65 6c 6c | 29 3b 0a 20 20 73 75 62 |treecell|);. sub| |00004b50| 74 72 65 65 69 74 65 6d | 2e 61 70 70 65 6e 64 43 |treeitem|.appendC| |00004b60| 68 69 6c 64 28 73 75 62 | 74 72 65 65 72 6f 77 29 |hild(sub|treerow)| |00004b70| 3b 0a 20 20 73 75 62 74 | 72 65 65 69 74 65 6d 2e |;. subt|reeitem.| |00004b80| 73 65 74 41 74 74 72 69 | 62 75 74 65 28 22 63 6f |setAttri|bute("co| |00004b90| 6e 74 61 69 6e 65 72 22 | 2c 20 22 74 72 75 65 22 |ntainer"|, "true"| |00004ba0| 29 3b 0a 20 20 69 66 20 | 28 72 75 6c 65 2e 73 74 |);. if |(rule.st| |00004bb0| 79 6c 65 53 68 65 65 74 | 29 20 7b 0a 20 20 20 20 |yleSheet|) {. | |00004bc0| 2f 2f 20 69 66 20 77 65 | 20 68 61 76 65 20 61 20 |// if we| have a | |00004bd0| 73 74 79 6c 65 73 68 65 | 65 74 20 72 65 61 6c 6c |styleshe|et reall| |00004be0| 79 20 69 6d 70 6f 72 74 | 65 64 2c 20 6c 65 74 27 |y import|ed, let'| |00004bf0| 73 20 62 72 6f 77 73 65 | 20 69 74 20 74 6f 6f 0a |s browse| it too.| |00004c00| 20 20 20 20 2f 2f 20 69 | 6e 63 72 65 61 73 69 6e | // i|ncreasin| |00004c10| 67 20 74 68 65 20 64 65 | 70 74 68 20 61 6e 64 20 |g the de|pth and | |00004c20| 6d 61 72 6b 69 6e 67 20 | 65 78 74 65 72 6e 61 6c |marking |external| |00004c30| 0a 20 20 20 20 41 64 64 | 52 75 6c 65 73 54 6f 54 |. Add|RulesToT| |00004c40| 72 65 65 63 68 69 6c 64 | 72 65 6e 28 73 75 62 74 |reechild|ren(subt| |00004c50| 72 65 65 69 74 65 6d 20 | 2c 20 72 75 6c 65 2e 73 |reeitem |, rule.s| |00004c60| 74 79 6c 65 53 68 65 65 | 74 2e 63 73 73 52 75 6c |tyleShee|t.cssRul| |00004c70| 65 73 2c 20 74 72 75 65 | 2c 20 64 65 70 74 68 2b |es, true|, depth+| |00004c80| 31 29 3b 0a 20 20 7d 0a | 20 20 72 65 74 75 72 6e |1);. }.| return| |00004c90| 20 73 75 62 74 72 65 65 | 69 74 65 6d 3b 0a 7d 0a | subtree|item;.}.| |00004ca0| 0a 2f 2f 20 2a 20 61 64 | 64 73 20 73 75 62 74 72 |.// * ad|ds subtr| |00004cb0| 65 65 69 74 65 6d 73 20 | 66 6f 72 20 74 68 65 20 |eeitems |for the | |00004cc0| 43 53 53 20 72 75 6c 65 | 73 20 66 6f 75 6e 64 0a |CSS rule|s found.| |00004cd0| 2f 2f 20 20 20 69 6e 74 | 6f 20 72 75 6c 65 73 3b |// int|o rules;| |00004ce0| 20 69 6e 20 63 61 73 65 | 20 6f 66 20 61 6e 20 61 | in case| of an a| |00004cf0| 74 2d 72 75 6c 65 2c 20 | 74 68 65 20 6d 65 74 68 |t-rule, |the meth| |00004d00| 6f 64 20 63 61 6c 6c 73 | 20 69 74 73 65 6c 66 20 |od calls| itself | |00004d10| 77 69 74 68 0a 2f 2f 20 | 20 20 61 20 73 75 62 74 |with.// | a subt| |00004d20| 72 65 65 69 74 65 6d 2c | 20 74 68 65 20 72 75 6c |reeitem,| the rul| |00004d30| 65 73 20 69 6e 20 74 68 | 65 20 61 74 2d 72 75 6c |es in th|e at-rul| |00004d40| 65 2c 20 61 20 62 6f 6f | 6c 65 61 6e 20 73 70 65 |e, a boo|lean spe| |00004d50| 63 69 66 79 69 6e 67 20 | 69 66 0a 2f 2f 20 20 20 |cifying |if.// | |00004d60| 74 68 65 20 72 75 6c 65 | 73 20 61 72 65 20 65 78 |the rule|s are ex| |00004d70| 74 65 72 6e 61 6c 20 74 | 6f 20 74 68 65 20 64 6f |ternal t|o the do| |00004d80| 63 75 6d 65 6e 74 20 6f | 72 20 6e 6f 74 2c 20 61 |cument o|r not, a| |00004d90| 6e 64 20 61 6e 20 69 6e | 63 72 65 61 73 65 64 0a |nd an in|creased.| |00004da0| 2f 2f 20 20 20 64 65 70 | 74 68 2e 0a 2f 2f 20 20 |// dep|th..// | |00004db0| 20 70 61 72 61 6d 20 58 | 55 4c 45 6c 65 6d 65 6e | param X|ULElemen| |00004dc0| 74 20 20 74 72 65 65 49 | 74 65 6d 0a 2f 2f 20 20 |t treeI|tem.// | |00004dd0| 20 70 61 72 61 6d 20 43 | 53 53 52 75 6c 65 4c 69 | param C|SSRuleLi| |00004de0| 73 74 20 72 75 6c 65 73 | 0a 2f 2f 20 20 20 70 61 |st rules|.// pa| |00004df0| 72 61 6d 20 62 6f 6f 6c | 65 61 6e 20 20 20 20 20 |ram bool|ean | |00004e00| 65 78 74 65 72 6e 61 6c | 0a 2f 2f 20 20 20 70 61 |external|.// pa| |00004e10| 72 61 6d 20 69 6e 74 65 | 67 65 72 20 20 20 20 20 |ram inte|ger | |00004e20| 64 65 70 74 68 0a 66 75 | 6e 63 74 69 6f 6e 20 41 |depth.fu|nction A| |00004e30| 64 64 52 75 6c 65 73 54 | 6f 54 72 65 65 63 68 69 |ddRulesT|oTreechi| |00004e40| 6c 64 72 65 6e 28 74 72 | 65 65 49 74 65 6d 2c 20 |ldren(tr|eeItem, | |00004e50| 72 75 6c 65 73 2c 20 65 | 78 74 65 72 6e 61 6c 2c |rules, e|xternal,| |00004e60| 20 64 65 70 74 68 29 0a | 7b 0a 20 20 2f 2f 20 69 | depth).|{. // i| |00004e70| 73 20 74 68 65 72 65 20 | 61 6e 79 20 72 75 6c 65 |s there |any rule| |00004e80| 20 69 6e 20 74 68 65 20 | 73 74 79 6c 65 73 68 65 | in the |styleshe| |00004e90| 65 74 20 3b 20 65 61 72 | 6c 61 79 20 77 61 79 20 |et ; ear|lay way | |00004ea0| 6f 75 74 20 69 66 20 6e | 6f 74 0a 20 20 69 66 20 |out if n|ot. if | |00004eb0| 28 72 75 6c 65 73 20 26 | 26 20 72 75 6c 65 73 2e |(rules &|& rules.| |00004ec0| 6c 65 6e 67 74 68 29 20 | 7b 0a 20 20 20 20 76 61 |length) |{. va| |00004ed0| 72 20 73 75 62 74 72 65 | 65 63 68 69 6c 64 72 65 |r subtre|echildre| |00004ee0| 6e 20 3d 20 64 6f 63 75 | 6d 65 6e 74 2e 63 72 65 |n = docu|ment.cre| |00004ef0| 61 74 65 45 6c 65 6d 65 | 6e 74 4e 53 28 58 55 4c |ateEleme|ntNS(XUL| |00004f00| 5f 4e 53 2c 20 22 74 72 | 65 65 63 68 69 6c 64 72 |_NS, "tr|eechildr| |00004f10| 65 6e 22 29 3b 0a 20 20 | 20 20 76 61 72 20 6a 2c |en");. | var j,| |00004f20| 20 6f 3b 0a 20 20 20 20 | 76 61 72 20 73 75 62 74 | o;. |var subt| |00004f30| 72 65 65 69 74 65 6d 2c | 20 73 75 62 74 72 65 65 |reeitem,| subtree| |00004f40| 72 6f 77 2c 20 73 75 62 | 74 72 65 65 63 65 6c 6c |row, sub|treecell| |00004f50| 3b 0a 20 20 20 20 2f 2f | 20 6c 65 74 27 73 20 62 |;. //| let's b| |00004f60| 72 6f 77 73 65 20 61 6c | 6c 20 74 68 65 20 72 75 |rowse al|l the ru| |00004f70| 6c 65 73 0a 20 20 20 20 | 66 6f 72 20 28 6a 3d 30 |les. |for (j=0| |00004f80| 3b 20 6a 3c 20 72 75 6c | 65 73 2e 6c 65 6e 67 74 |; j< rul|es.lengt| |00004f90| 68 3b 20 6a 2b 2b 29 20 | 7b 0a 20 20 20 20 20 20 |h; j++) |{. | |00004fa0| 73 77 69 74 63 68 20 28 | 72 75 6c 65 73 5b 6a 5d |switch (|rules[j]| |00004fb0| 2e 74 79 70 65 29 20 7b | 0a 20 20 20 20 20 20 20 |.type) {|. | |00004fc0| 20 63 61 73 65 20 43 53 | 53 52 75 6c 65 2e 53 54 | case CS|SRule.ST| |00004fd0| 59 4c 45 5f 52 55 4c 45 | 3a 0a 20 20 20 20 20 20 |YLE_RULE|:. | |00004fe0| 20 20 20 20 2f 2f 20 74 | 68 69 73 20 69 73 20 61 | // t|his is a| |00004ff0| 20 43 53 53 53 74 79 6c | 65 52 75 6c 65 0a 20 20 | CSSStyl|eRule. | |00005000| 20 20 20 20 20 20 20 20 | 73 75 62 74 72 65 65 69 | |subtreei| |00005010| 74 65 6d 20 20 3d 20 41 | 64 64 53 74 79 6c 65 52 |tem = A|ddStyleR| |00005020| 75 6c 65 54 6f 54 72 65 | 65 43 68 69 6c 64 72 65 |uleToTre|eChildre| |00005030| 6e 28 72 75 6c 65 73 5b | 6a 5d 2c 20 65 78 74 65 |n(rules[|j], exte| |00005040| 72 6e 61 6c 2c 20 64 65 | 70 74 68 29 3b 0a 20 20 |rnal, de|pth);. | |00005050| 20 20 20 20 20 20 20 20 | 73 75 62 74 72 65 65 63 | |subtreec| |00005060| 68 69 6c 64 72 65 6e 2e | 61 70 70 65 6e 64 43 68 |hildren.|appendCh| |00005070| 69 6c 64 28 73 75 62 74 | 72 65 65 69 74 65 6d 29 |ild(subt|reeitem)| |00005080| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 62 72 65 61 |;. | brea| |00005090| 6b 3b 0a 20 20 20 20 20 | 20 20 20 63 61 73 65 20 |k;. | case | |000050a0| 43 53 53 52 75 6c 65 2e | 50 41 47 45 5f 52 55 4c |CSSRule.|PAGE_RUL| |000050b0| 45 3a 0a 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 |E:. | // | |000050c0| 74 68 69 73 20 69 73 20 | 61 20 43 53 53 53 74 79 |this is |a CSSSty| |000050d0| 6c 65 52 75 6c 65 0a 20 | 20 20 20 20 20 20 20 20 |leRule. | | |000050e0| 20 73 75 62 74 72 65 65 | 69 74 65 6d 20 20 3d 20 | subtree|item = | |000050f0| 41 64 64 50 61 67 65 52 | 75 6c 65 54 6f 54 72 65 |AddPageR|uleToTre| |00005100| 65 43 68 69 6c 64 72 65 | 6e 28 72 75 6c 65 73 5b |eChildre|n(rules[| |00005110| 6a 5d 2c 20 65 78 74 65 | 72 6e 61 6c 2c 20 64 65 |j], exte|rnal, de| |00005120| 70 74 68 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |pth);. | | |00005130| 73 75 62 74 72 65 65 63 | 68 69 6c 64 72 65 6e 2e |subtreec|hildren.| |00005140| 61 70 70 65 6e 64 43 68 | 69 6c 64 28 73 75 62 74 |appendCh|ild(subt| |00005150| 72 65 65 69 74 65 6d 29 | 3b 0a 20 20 20 20 20 20 |reeitem)|;. | |00005160| 20 20 20 20 62 72 65 61 | 6b 3b 0a 20 20 20 20 20 | brea|k;. | |00005170| 20 20 20 63 61 73 65 20 | 43 53 53 52 75 6c 65 2e | case |CSSRule.| |00005180| 49 4d 50 4f 52 54 5f 52 | 55 4c 45 3a 0a 20 20 20 |IMPORT_R|ULE:. | |00005190| 20 20 20 20 20 20 20 2f | 2f 20 74 68 69 73 20 69 | /|/ this i| |000051a0| 73 20 43 53 53 49 6d 70 | 6f 72 74 52 75 6c 65 20 |s CSSImp|ortRule | |000051b0| 66 6f 72 20 40 69 6d 70 | 6f 72 74 0a 20 20 20 20 |for @imp|ort. | |000051c0| 20 20 20 20 20 20 73 75 | 62 74 72 65 65 69 74 65 | su|btreeite| |000051d0| 6d 20 20 3d 20 41 64 64 | 49 6d 70 6f 72 74 52 75 |m = Add|ImportRu| |000051e0| 6c 65 54 6f 54 72 65 65 | 43 68 69 6c 64 72 65 6e |leToTree|Children| |000051f0| 28 72 75 6c 65 73 5b 6a | 5d 2c 20 65 78 74 65 72 |(rules[j|], exter| |00005200| 6e 61 6c 2c 20 64 65 70 | 74 68 29 3b 0a 20 20 20 |nal, dep|th);. | |00005210| 20 20 20 20 20 20 20 73 | 75 62 74 72 65 65 63 68 | s|ubtreech| |00005220| 69 6c 64 72 65 6e 2e 61 | 70 70 65 6e 64 43 68 69 |ildren.a|ppendChi| |00005230| 6c 64 28 73 75 62 74 72 | 65 65 69 74 65 6d 29 3b |ld(subtr|eeitem);| |00005240| 0a 20 20 20 20 20 20 20 | 20 20 20 62 72 65 61 6b |. | break| |00005250| 3b 0a 20 20 20 20 20 20 | 20 20 63 61 73 65 20 43 |;. | case C| |00005260| 53 53 52 75 6c 65 2e 4d | 45 44 49 41 5f 52 55 4c |SSRule.M|EDIA_RUL| |00005270| 45 3a 0a 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 |E:. | // | |00005280| 74 68 69 73 20 69 73 20 | 61 20 43 53 53 4d 65 64 |this is |a CSSMed| |00005290| 69 61 52 75 6c 65 20 40 | 6d 65 64 69 61 0a 20 20 |iaRule @|media. | |000052a0| 20 20 20 20 20 20 20 20 | 73 75 62 74 72 65 65 69 | |subtreei| |000052b0| 74 65 6d 20 20 3d 20 64 | 6f 63 75 6d 65 6e 74 2e |tem = d|ocument.| |000052c0| 63 72 65 61 74 65 45 6c | 65 6d 65 6e 74 4e 53 28 |createEl|ementNS(| |000052d0| 58 55 4c 5f 4e 53 2c 20 | 22 74 72 65 65 69 74 65 |XUL_NS, |"treeite| |000052e0| 6d 22 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 73 |m");. | s| |000052f0| 75 62 74 72 65 65 72 6f | 77 20 20 20 3d 20 64 6f |ubtreero|w = do| |00005300| 63 75 6d 65 6e 74 2e 63 | 72 65 61 74 65 45 6c 65 |cument.c|reateEle| |00005310| 6d 65 6e 74 4e 53 28 58 | 55 4c 5f 4e 53 2c 20 22 |mentNS(X|UL_NS, "| |00005320| 74 72 65 65 72 6f 77 22 | 29 3b 0a 20 20 20 20 20 |treerow"|);. | |00005330| 20 20 20 20 20 73 75 62 | 74 72 65 65 63 65 6c 6c | sub|treecell| |00005340| 20 20 3d 20 64 6f 63 75 | 6d 65 6e 74 2e 63 72 65 | = docu|ment.cre| |00005350| 61 74 65 45 6c 65 6d 65 | 6e 74 4e 53 28 58 55 4c |ateEleme|ntNS(XUL| |00005360| 5f 4e 53 2c 20 22 74 72 | 65 65 63 65 6c 6c 22 29 |_NS, "tr|eecell")| |00005370| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 73 |;. | // s| |00005380| 68 6f 77 20 22 40 6d 65 | 64 69 61 22 20 61 6e 64 |how "@me|dia" and| |00005390| 20 6d 65 64 69 61 20 6c | 69 73 74 0a 20 20 20 20 | media l|ist. | |000053a0| 20 20 20 20 20 20 73 75 | 62 74 72 65 65 63 65 6c | su|btreecel| |000053b0| 6c 2e 73 65 74 41 74 74 | 72 69 62 75 74 65 28 22 |l.setAtt|ribute("| |000053c0| 6c 61 62 65 6c 22 2c 20 | 22 40 6d 65 64 69 61 20 |label", |"@media | |000053d0| 22 2b 72 75 6c 65 73 5b | 6a 5d 2e 6d 65 64 69 61 |"+rules[|j].media| |000053e0| 2e 6d 65 64 69 61 54 65 | 78 74 2c 20 65 78 74 65 |.mediaTe|xt, exte| |000053f0| 72 6e 61 6c 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |rnal);. | | |00005400| 20 6f 20 3d 20 6e 65 77 | 4f 62 6a 65 63 74 28 20 | o = new|Object( | |00005410| 73 75 62 74 72 65 65 69 | 74 65 6d 2c 20 65 78 74 |subtreei|tem, ext| |00005420| 65 72 6e 61 6c 2c 20 4d | 45 44 49 41 5f 52 55 4c |ernal, M|EDIA_RUL| |00005430| 45 2c 20 72 75 6c 65 73 | 5b 6a 5d 2c 20 66 61 6c |E, rules|[j], fal| |00005440| 73 65 2c 20 64 65 70 74 | 68 20 29 3b 0a 20 20 20 |se, dept|h );. | |00005450| 20 20 20 20 20 20 20 50 | 75 73 68 49 6e 4f 62 6a | P|ushInObj| |00005460| 65 63 74 73 41 72 72 61 | 79 28 6f 29 3b 0a 20 20 |ectsArra|y(o);. | |00005470| 20 20 20 20 20 20 20 20 | 69 66 20 28 65 78 74 65 | |if (exte| |00005480| 72 6e 61 6c 29 20 7b 0a | 20 20 20 20 20 20 20 20 |rnal) {.| | |00005490| 20 20 20 20 73 75 62 74 | 72 65 65 63 65 6c 6c 2e | subt|reecell.| |000054a0| 73 65 74 41 74 74 72 69 | 62 75 74 65 28 22 70 72 |setAttri|bute("pr| |000054b0| 6f 70 65 72 74 69 65 73 | 22 2c 20 22 65 78 74 65 |operties|", "exte| |000054c0| 72 6e 61 6c 22 29 3b 0a | 20 20 20 20 20 20 20 20 |rnal");.| | |000054d0| 20 20 7d 0a 20 20 20 20 | 20 20 20 20 20 20 73 75 | }. | su| |000054e0| 62 74 72 65 65 72 6f 77 | 2e 61 70 70 65 6e 64 43 |btreerow|.appendC| |000054f0| 68 69 6c 64 28 73 75 62 | 74 72 65 65 63 65 6c 6c |hild(sub|treecell| |00005500| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 73 75 62 |);. | sub| |00005510| 74 72 65 65 69 74 65 6d | 2e 61 70 70 65 6e 64 43 |treeitem|.appendC| |00005520| 68 69 6c 64 28 73 75 62 | 74 72 65 65 72 6f 77 29 |hild(sub|treerow)| |00005530| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 73 75 62 74 |;. | subt| |00005540| 72 65 65 69 74 65 6d 2e | 73 65 74 41 74 74 72 69 |reeitem.|setAttri| |00005550| 62 75 74 65 28 22 63 6f | 6e 74 61 69 6e 65 72 22 |bute("co|ntainer"| |00005560| 2c 20 22 74 72 75 65 22 | 29 3b 0a 20 20 20 20 20 |, "true"|);. | |00005570| 20 20 20 20 20 2f 2f 20 | 6c 65 74 27 73 20 62 72 | // |let's br| |00005580| 6f 77 73 65 20 74 68 65 | 20 72 75 6c 65 73 20 61 |owse the| rules a| |00005590| 74 74 61 63 68 65 64 20 | 74 6f 20 74 68 69 73 20 |ttached |to this | |000055a0| 43 53 53 4d 65 64 69 61 | 52 75 6c 65 2c 20 6b 65 |CSSMedia|Rule, ke| |000055b0| 65 70 69 6e 67 20 74 68 | 65 0a 20 20 20 20 20 20 |eping th|e. | |000055c0| 20 20 20 20 2f 2f 20 63 | 75 72 72 65 6e 74 20 65 | // c|urrent e| |000055d0| 78 74 65 72 6e 61 6c 20 | 61 6e 64 20 69 6e 63 72 |xternal |and incr| |000055e0| 65 61 73 69 6e 67 20 64 | 65 70 74 68 0a 20 20 20 |easing d|epth. | |000055f0| 20 20 20 20 20 20 20 41 | 64 64 52 75 6c 65 73 54 | A|ddRulesT| |00005600| 6f 54 72 65 65 63 68 69 | 6c 64 72 65 6e 28 73 75 |oTreechi|ldren(su| |00005610| 62 74 72 65 65 69 74 65 | 6d 2c 20 72 75 6c 65 73 |btreeite|m, rules| |00005620| 5b 6a 5d 2e 63 73 73 52 | 75 6c 65 73 2c 20 65 78 |[j].cssR|ules, ex| |00005630| 74 65 72 6e 61 6c 2c 20 | 64 65 70 74 68 2b 31 29 |ternal, |depth+1)| |00005640| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 73 75 62 74 |;. | subt| |00005650| 72 65 65 63 68 69 6c 64 | 72 65 6e 2e 61 70 70 65 |reechild|ren.appe| |00005660| 6e 64 43 68 69 6c 64 28 | 73 75 62 74 72 65 65 69 |ndChild(|subtreei| |00005670| 74 65 6d 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |tem);. | | |00005680| 62 72 65 61 6b 3b 0a 20 | 20 20 20 20 20 20 20 63 |break;. | c| |00005690| 61 73 65 20 43 53 53 52 | 75 6c 65 2e 43 48 41 52 |ase CSSR|ule.CHAR| |000056a0| 53 45 54 5f 52 55 4c 45 | 3a 0a 20 20 20 20 20 20 |SET_RULE|:. | |000056b0| 20 20 20 20 2f 2f 20 74 | 68 69 73 20 69 73 20 61 | // t|his is a| |000056c0| 20 43 53 53 43 68 61 72 | 73 65 74 52 75 6c 65 0a | CSSChar|setRule.| |000056d0| 20 20 20 20 20 20 20 20 | 20 20 73 75 62 74 72 65 | | subtre| |000056e0| 65 69 74 65 6d 20 20 3d | 20 64 6f 63 75 6d 65 6e |eitem =| documen| |000056f0| 74 2e 63 72 65 61 74 65 | 45 6c 65 6d 65 6e 74 4e |t.create|ElementN| |00005700| 53 28 58 55 4c 5f 4e 53 | 2c 20 22 74 72 65 65 69 |S(XUL_NS|, "treei| |00005710| 74 65 6d 22 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |tem");. | | |00005720| 20 73 75 62 74 72 65 65 | 72 6f 77 20 20 20 3d 20 | subtree|row = | |00005730| 64 6f 63 75 6d 65 6e 74 | 2e 63 72 65 61 74 65 45 |document|.createE| |00005740| 6c 65 6d 65 6e 74 4e 53 | 28 58 55 4c 5f 4e 53 2c |lementNS|(XUL_NS,| |00005750| 20 22 74 72 65 65 72 6f | 77 22 29 3b 0a 20 20 20 | "treero|w");. | |00005760| 20 20 20 20 20 20 20 73 | 75 62 74 72 65 65 63 65 | s|ubtreece| |00005770| 6c 6c 20 20 3d 20 64 6f | 63 75 6d 65 6e 74 2e 63 |ll = do|cument.c| |00005780| 72 65 61 74 65 45 6c 65 | 6d 65 6e 74 4e 53 28 58 |reateEle|mentNS(X| |00005790| 55 4c 5f 4e 53 2c 20 22 | 74 72 65 65 63 65 6c 6c |UL_NS, "|treecell| |000057a0| 22 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 2f 2f |");. | //| |000057b0| 20 73 68 6f 77 20 22 40 | 63 68 61 72 73 65 74 22 | show "@|charset"| |000057c0| 20 61 6e 64 20 74 68 65 | 20 65 6e 63 6f 64 69 6e | and the| encodin| |000057d0| 67 0a 20 20 20 20 20 20 | 20 20 20 20 73 75 62 74 |g. | subt| |000057e0| 72 65 65 63 65 6c 6c 2e | 73 65 74 41 74 74 72 69 |reecell.|setAttri| |000057f0| 62 75 74 65 28 22 6c 61 | 62 65 6c 22 2c 20 22 40 |bute("la|bel", "@| |00005800| 63 68 61 72 73 65 74 20 | 22 2b 72 75 6c 65 73 5b |charset |"+rules[| |00005810| 6a 5d 2e 65 6e 63 6f 64 | 69 6e 67 2c 20 65 78 74 |j].encod|ing, ext| |00005820| 65 72 6e 61 6c 29 3b 0a | 20 20 20 20 20 20 20 20 |ernal);.| | |00005830| 20 20 6f 20 3d 20 6e 65 | 77 4f 62 6a 65 63 74 28 | o = ne|wObject(| |00005840| 20 73 75 62 74 72 65 65 | 69 74 65 6d 2c 20 65 78 | subtree|item, ex| |00005850| 74 65 72 6e 61 6c 2c 20 | 43 48 41 52 53 45 54 5f |ternal, |CHARSET_| |00005860| 52 55 4c 45 2c 20 72 75 | 6c 65 73 5b 6a 5d 2c 20 |RULE, ru|les[j], | |00005870| 66 61 6c 73 65 2c 20 64 | 65 70 74 68 20 29 3b 0a |false, d|epth );.| |00005880| 20 20 20 20 20 20 20 20 | 20 20 50 75 73 68 49 6e | | PushIn| |00005890| 4f 62 6a 65 63 74 73 41 | 72 72 61 79 28 6f 29 3b |ObjectsA|rray(o);| |000058a0| 0a 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 65 |. | if (e| |000058b0| 78 74 65 72 6e 61 6c 29 | 20 7b 0a 20 20 20 20 20 |xternal)| {. | |000058c0| 20 20 20 20 20 20 20 73 | 75 62 74 72 65 65 63 65 | s|ubtreece| |000058d0| 6c 6c 2e 73 65 74 41 74 | 74 72 69 62 75 74 65 28 |ll.setAt|tribute(| |000058e0| 22 70 72 6f 70 65 72 74 | 69 65 73 22 2c 20 22 65 |"propert|ies", "e| |000058f0| 78 74 65 72 6e 61 6c 22 | 29 3b 0a 20 20 20 20 20 |xternal"|);. | |00005900| 20 20 20 20 20 7d 0a 20 | 20 20 20 20 20 20 20 20 | }. | | |00005910| 20 73 75 62 74 72 65 65 | 72 6f 77 2e 61 70 70 65 | subtree|row.appe| |00005920| 6e 64 43 68 69 6c 64 28 | 73 75 62 74 72 65 65 63 |ndChild(|subtreec| |00005930| 65 6c 6c 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |ell);. | | |00005940| 73 75 62 74 72 65 65 69 | 74 65 6d 2e 61 70 70 65 |subtreei|tem.appe| |00005950| 6e 64 43 68 69 6c 64 28 | 73 75 62 74 72 65 65 72 |ndChild(|subtreer| |00005960| 6f 77 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 73 |ow);. | s| |00005970| 75 62 74 72 65 65 63 68 | 69 6c 64 72 65 6e 2e 61 |ubtreech|ildren.a| |00005980| 70 70 65 6e 64 43 68 69 | 6c 64 28 73 75 62 74 72 |ppendChi|ld(subtr| |00005990| 65 65 69 74 65 6d 29 3b | 0a 20 20 20 20 20 20 20 |eeitem);|. | |000059a0| 20 20 20 62 72 65 61 6b | 3b 20 20 20 20 20 20 20 | break|; | |000059b0| 20 20 20 0a 20 20 20 20 | 20 20 7d 0a 20 20 20 20 | . | }. | |000059c0| 7d 0a 20 20 20 20 74 72 | 65 65 49 74 65 6d 2e 61 |}. tr|eeItem.a| |000059d0| 70 70 65 6e 64 43 68 69 | 6c 64 28 73 75 62 74 72 |ppendChi|ld(subtr| |000059e0| 65 65 63 68 69 6c 64 72 | 65 6e 29 3b 0a 20 20 7d |eechildr|en);. }| |000059f0| 0a 7d 0a 0a 66 75 6e 63 | 74 69 6f 6e 20 47 65 74 |.}..func|tion Get| |00005a00| 53 65 6c 65 63 74 65 64 | 49 74 65 6d 44 61 74 61 |Selected|ItemData| |00005a10| 28 29 0a 7b 0a 20 20 2f | 2f 20 67 65 74 20 74 68 |().{. /|/ get th| |00005a20| 65 20 73 65 6c 65 63 74 | 65 64 20 74 72 65 65 20 |e select|ed tree | |00005a30| 69 74 65 6d 20 28 69 66 | 20 61 6e 79 29 0a 20 20 |item (if| any). | |00005a40| 76 61 72 20 73 65 6c 65 | 63 74 65 64 49 74 65 6d |var sele|ctedItem| |00005a50| 20 3d 20 20 67 65 74 53 | 65 6c 65 63 74 65 64 49 | = getS|electedI| |00005a60| 74 65 6d 28 67 44 69 61 | 6c 6f 67 2e 73 68 65 65 |tem(gDia|log.shee| |00005a70| 74 73 54 72 65 65 29 3b | 0a 20 20 67 44 69 61 6c |tsTree);|. gDial| |00005a80| 6f 67 2e 73 65 6c 65 63 | 74 65 64 49 6e 64 65 78 |og.selec|tedIndex| |00005a90| 20 20 3d 20 2d 31 3b 0a | 20 20 67 44 69 61 6c 6f | = -1;.| gDialo| |00005aa0| 67 2e 73 65 6c 65 63 74 | 65 64 4f 62 6a 65 63 74 |g.select|edObject| |00005ab0| 20 3d 20 6e 75 6c 6c 3b | 0a 0a 20 20 69 66 20 28 | = null;|.. if (| |00005ac0| 21 6f 62 6a 65 63 74 73 | 41 72 72 61 79 29 0a 20 |!objects|Array). | |00005ad0| 20 20 20 72 65 74 75 72 | 6e 3b 0a 20 20 2f 2f 20 | retur|n;. // | |00005ae0| 6c 6f 6f 6b 20 66 6f 72 | 20 74 68 65 20 6f 62 6a |look for| the obj| |00005af0| 65 63 74 20 69 6e 20 6f | 62 6a 65 63 74 73 41 72 |ect in o|bjectsAr| |00005b00| 72 61 79 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |ray corr|espondin| |00005b10| 67 20 74 6f 20 74 68 65 | 0a 20 20 2f 2f 20 73 65 |g to the|. // se| |00005b20| 6c 65 63 74 65 64 49 74 | 65 6d 0a 20 20 76 61 72 |lectedIt|em. var| |00005b30| 20 69 2c 20 6c 20 3d 20 | 6f 62 6a 65 63 74 73 41 | i, l = |objectsA| |00005b40| 72 72 61 79 2e 6c 65 6e | 67 74 68 3b 0a 20 20 69 |rray.len|gth;. i| |00005b50| 66 20 28 73 65 6c 65 63 | 74 65 64 49 74 65 6d 29 |f (selec|tedItem)| |00005b60| 20 7b 0a 20 20 20 20 66 | 6f 72 20 28 69 3d 30 3b | {. f|or (i=0;| |00005b70| 20 69 3c 6c 3b 20 69 2b | 2b 29 20 7b 0a 20 20 20 | i<l; i+|+) {. | |00005b80| 20 20 20 69 66 20 28 6f | 62 6a 65 63 74 73 41 72 | if (o|bjectsAr| |00005b90| 72 61 79 5b 69 5d 2e 78 | 75 6c 45 6c 74 20 3d 3d |ray[i].x|ulElt ==| |00005ba0| 20 73 65 6c 65 63 74 65 | 64 49 74 65 6d 29 20 7b | selecte|dItem) {| |00005bb0| 0a 20 20 20 20 20 20 20 | 20 67 44 69 61 6c 6f 67 |. | gDialog| |00005bc0| 2e 73 65 6c 65 63 74 65 | 64 49 6e 64 65 78 20 20 |.selecte|dIndex | |00005bd0| 3d 20 69 3b 0a 20 20 20 | 20 20 20 20 20 67 44 69 |= i;. | gDi| |00005be0| 61 6c 6f 67 2e 74 72 65 | 65 49 74 65 6d 20 20 20 |alog.tre|eItem | |00005bf0| 20 20 20 20 3d 20 6f 62 | 6a 65 63 74 73 41 72 72 | = ob|jectsArr| |00005c00| 61 79 5b 69 5d 2e 78 75 | 6c 45 6c 74 3b 0a 20 20 |ay[i].xu|lElt;. | |00005c10| 20 20 20 20 20 20 67 44 | 69 61 6c 6f 67 2e 65 78 | gD|ialog.ex| |00005c20| 74 65 72 6e 61 6c 4f 62 | 6a 65 63 74 20 3d 20 6f |ternalOb|ject = o| |00005c30| 62 6a 65 63 74 73 41 72 | 72 61 79 5b 69 5d 2e 65 |bjectsAr|ray[i].e| |00005c40| 78 74 65 72 6e 61 6c 3b | 0a 20 20 20 20 20 20 20 |xternal;|. | |00005c50| 20 67 44 69 61 6c 6f 67 | 2e 73 65 6c 65 63 74 65 | gDialog|.selecte| |00005c60| 64 54 79 70 65 20 20 20 | 3d 20 6f 62 6a 65 63 74 |dType |= object| |00005c70| 73 41 72 72 61 79 5b 69 | 5d 2e 74 79 70 65 3b 0a |sArray[i|].type;.| |00005c80| 20 20 20 20 20 20 20 20 | 67 44 69 61 6c 6f 67 2e | |gDialog.| |00005c90| 73 65 6c 65 63 74 65 64 | 4f 62 6a 65 63 74 20 3d |selected|Object =| |00005ca0| 20 6f 62 6a 65 63 74 73 | 41 72 72 61 79 5b 69 5d | objects|Array[i]| |00005cb0| 2e 63 73 73 45 6c 74 3b | 0a 20 20 20 20 20 20 20 |.cssElt;|. | |00005cc0| 20 67 44 69 61 6c 6f 67 | 2e 6d 6f 64 69 66 69 65 | gDialog|.modifie| |00005cd0| 64 4f 62 6a 65 63 74 20 | 3d 20 6f 62 6a 65 63 74 |dObject |= object| |00005ce0| 73 41 72 72 61 79 5b 69 | 5d 2e 6d 6f 64 69 66 69 |sArray[i|].modifi| |00005cf0| 65 64 3b 0a 20 20 20 20 | 20 20 20 20 67 44 69 61 |ed;. | gDia| |00005d00| 6c 6f 67 2e 64 65 70 74 | 68 4f 62 6a 65 63 74 20 |log.dept|hObject | |00005d10| 20 20 20 3d 20 6f 62 6a | 65 63 74 73 41 72 72 61 | = obj|ectsArra| |00005d20| 79 5b 69 5d 2e 64 65 70 | 74 68 3b 0a 20 20 20 20 |y[i].dep|th;. | |00005d30| 20 20 20 20 62 72 65 61 | 6b 3b 0a 20 20 20 20 20 | brea|k;. | |00005d40| 20 7d 0a 20 20 20 20 7d | 0a 20 20 7d 0a 7d 0a 0a | }. }|. }.}..| |00005d50| 2f 2f 20 2a 20 73 65 6c | 65 63 74 73 20 65 69 74 |// * sel|ects eit| |00005d60| 68 65 72 20 61 20 74 72 | 65 65 20 69 74 65 6d 20 |her a tr|ee item | |00005d70| 28 73 68 65 65 74 2c 20 | 72 75 6c 65 29 20 6f 72 |(sheet, |rule) or| |00005d80| 20 61 20 74 61 62 0a 2f | 2f 20 20 20 69 6e 20 74 | a tab./|/ in t| |00005d90| 68 65 20 66 6f 72 6d 65 | 72 20 63 61 73 65 2c 20 |he forme|r case, | |00005da0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 69 73 |the para|meter is| |00005db0| 20 6e 75 6c 6c 20 3b 20 | 69 6e 20 74 68 65 20 6c | null ; |in the l| |00005dc0| 61 74 74 65 72 2c 0a 2f | 2f 20 20 20 74 68 65 20 |atter,./|/ the | |00005dd0| 70 61 72 61 6d 65 74 65 | 72 20 69 73 20 61 20 73 |paramete|r is a s| |00005de0| 74 72 69 6e 67 20 63 6f | 6e 74 61 69 6e 69 6e 67 |tring co|ntaining| |00005df0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the| |00005e00| 20 73 65 6c 65 63 74 65 | 64 20 74 61 62 0a 2f 2f | selecte|d tab.//| |00005e10| 20 20 20 70 61 72 61 6d | 20 53 74 72 69 6e 67 20 | param| String | |00005e20| 74 61 62 0a 66 75 6e 63 | 74 69 6f 6e 20 6f 6e 53 |tab.func|tion onS| |00005e30| 65 6c 65 63 74 43 53 53 | 54 72 65 65 49 74 65 6d |electCSS|TreeItem| |00005e40| 28 74 61 62 29 0a 7b 0a | 20 20 2f 2f 20 63 6f 6e |(tab).{.| // con| |00005e50| 76 65 72 74 20 74 68 65 | 20 74 61 62 20 73 74 72 |vert the| tab str| |00005e60| 69 6e 67 20 69 6e 74 6f | 20 61 20 74 61 62 20 69 |ing into| a tab i| |00005e70| 64 0a 20 20 69 66 20 20 | 20 20 20 20 28 74 61 62 |d. if | (tab| |00005e80| 20 3d 3d 20 22 67 65 6e | 65 72 61 6c 22 29 20 20 | == "gen|eral") | |00005e90| 20 20 20 20 20 74 61 62 | 20 3d 20 47 45 4e 45 52 | tab| = GENER| |00005ea0| 41 4c 5f 54 41 42 3b 0a | 20 20 65 6c 73 65 20 69 |AL_TAB;.| else i| |00005eb0| 66 20 28 74 61 62 20 3d | 3d 20 22 74 65 78 74 22 |f (tab =|= "text"| |00005ec0| 29 20 20 20 20 20 20 20 | 20 20 20 74 61 62 20 3d |) | tab =| |00005ed0| 20 54 45 58 54 5f 54 41 | 42 3b 0a 20 20 65 6c 73 | TEXT_TA|B;. els| |00005ee0| 65 20 69 66 20 28 74 61 | 62 20 3d 3d 20 22 62 61 |e if (ta|b == "ba| |00005ef0| 63 6b 67 72 6f 75 6e 64 | 22 29 20 20 20 20 74 61 |ckground|") ta| |00005f00| 62 20 3d 20 42 41 43 4b | 47 52 4f 55 4e 44 5f 54 |b = BACK|GROUND_T| |00005f10| 41 42 3b 0a 20 20 65 6c | 73 65 20 69 66 20 28 74 |AB;. el|se if (t| |00005f20| 61 62 20 3d 3d 20 22 62 | 6f 72 64 65 72 22 29 20 |ab == "b|order") | |00005f30| 20 20 20 20 20 20 20 74 | 61 62 20 3d 20 42 4f 52 | t|ab = BOR| |00005f40| 44 45 52 5f 54 41 42 3b | 0a 20 20 65 6c 73 65 20 |DER_TAB;|. else | |00005f50| 69 66 20 28 74 61 62 20 | 3d 3d 20 22 62 6f 78 22 |if (tab |== "box"| |00005f60| 29 20 20 20 20 20 20 20 | 20 20 20 20 74 61 62 20 |) | tab | |00005f70| 3d 20 42 4f 58 5f 54 41 | 42 3b 0a 20 20 65 6c 73 |= BOX_TA|B;. els| |00005f80| 65 20 69 66 20 28 74 61 | 62 20 3d 3d 20 22 61 75 |e if (ta|b == "au| |00005f90| 72 61 6c 22 29 20 20 20 | 20 20 20 20 20 20 74 61 |ral") | ta| |00005fa0| 62 20 3d 20 41 55 52 41 | 4c 5f 54 41 42 3b 0a 0a |b = AURA|L_TAB;..| |00005fb0| 20 20 47 65 74 53 65 6c | 65 63 74 65 64 49 74 65 | GetSel|ectedIte| |00005fc0| 6d 44 61 74 61 28 29 3b | 0a 0a 20 20 69 66 20 28 |mData();|.. if (| |00005fd0| 67 44 69 61 6c 6f 67 2e | 73 65 6c 65 63 74 65 64 |gDialog.|selected| |00005fe0| 49 6e 64 65 78 20 3d 3d | 20 2d 31 29 20 7b 0a 20 |Index ==| -1) {. | |00005ff0| 20 20 20 2f 2f 20 74 68 | 65 72 65 20 69 73 20 6e | // th|ere is n| |00006000| 6f 20 74 72 65 65 20 69 | 74 65 6d 20 73 65 6c 65 |o tree i|tem sele| |00006010| 63 74 65 64 2c 20 6c 65 | 74 27 73 20 66 61 6c 6c |cted, le|t's fall| |00006020| 62 61 63 6b 20 74 6f 20 | 74 68 65 20 49 6e 66 6f |back to |the Info| |00006030| 20 74 61 62 0a 20 20 20 | 20 2f 2f 20 62 75 74 20 | tab. | // but | |00006040| 74 68 65 72 65 20 69 73 | 20 6e 6f 74 68 69 6e 67 |there is| nothing| |00006050| 20 77 65 20 63 61 6e 20 | 64 69 73 70 6c 61 79 20 | we can |display | |00006060| 69 6e 20 74 68 61 74 20 | 74 61 62 2e 2e 2e 0a 20 |in that |tab.... | |00006070| 20 20 20 67 44 69 61 6c | 6f 67 2e 73 68 65 65 74 | gDial|og.sheet| |00006080| 54 61 62 62 6f 78 2e 73 | 65 6c 65 63 74 65 64 54 |Tabbox.s|electedT| |00006090| 61 62 20 3d 20 67 44 69 | 61 6c 6f 67 2e 73 68 65 |ab = gDi|alog.she| |000060a0| 65 74 49 6e 66 6f 54 61 | 62 3b 0a 20 20 20 20 72 |etInfoTa|b;. r| |000060b0| 65 74 75 72 6e 3b 0a 20 | 20 7d 0a 0a 20 20 76 61 |eturn;. | }.. va| |000060c0| 72 20 65 78 74 65 72 6e | 61 6c 20 20 3d 20 6f 62 |r extern|al = ob| |000060d0| 6a 65 63 74 73 41 72 72 | 61 79 5b 67 44 69 61 6c |jectsArr|ay[gDial| |000060e0| 6f 67 2e 73 65 6c 65 63 | 74 65 64 49 6e 64 65 78 |og.selec|tedIndex| |000060f0| 5d 2e 65 78 74 65 72 6e | 61 6c 3b 0a 20 20 76 61 |].extern|al;. va| |00006100| 72 20 74 79 70 65 20 20 | 20 20 20 20 3d 20 6f 62 |r type | = ob| |00006110| 6a 65 63 74 73 41 72 72 | 61 79 5b 67 44 69 61 6c |jectsArr|ay[gDial| |00006120| 6f 67 2e 73 65 6c 65 63 | 74 65 64 49 6e 64 65 78 |og.selec|tedIndex| |00006130| 5d 2e 74 79 70 65 3b 0a | 20 20 76 61 72 20 63 73 |].type;.| var cs| |00006140| 73 4f 62 6a 65 63 74 20 | 3d 20 67 44 69 61 6c 6f |sObject |= gDialo| |00006150| 67 2e 73 65 6c 65 63 74 | 65 64 4f 62 6a 65 63 74 |g.select|edObject| |00006160| 3b 0a 20 20 2f 2f 20 4c | 65 74 27 73 20 75 70 64 |;. // L|et's upd| |00006170| 61 74 65 20 74 68 65 20 | 62 75 74 74 6f 6e 73 20 |ate the |buttons | |00006180| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 77 68 61 |dependin|g on wha| |00006190| 74 20 6b 69 6e 64 20 6f | 66 20 6f 62 6a 65 63 74 |t kind o|f object| |000061a0| 20 69 73 0a 20 20 2f 2f | 20 73 65 6c 65 63 74 65 | is. //| selecte| |000061b0| 64 20 69 6e 20 74 68 65 | 20 74 72 65 65 0a 20 20 |d in the| tree. | |000061c0| 55 70 64 61 74 65 42 75 | 74 74 6f 6e 73 28 21 65 |UpdateBu|ttons(!e| |000061d0| 78 74 65 72 6e 61 6c 2c | 20 21 65 78 74 65 72 6e |xternal,| !extern| |000061e0| 61 6c 2c 20 74 72 75 65 | 2c 20 74 72 75 65 2c 20 |al, true|, true, | |000061f0| 21 65 78 74 65 72 6e 61 | 6c 2c 20 28 21 65 78 74 |!externa|l, (!ext| |00006200| 65 72 6e 61 6c 20 7c 7c | 20 28 74 79 70 65 20 3d |ernal ||| (type =| |00006210| 3d 20 53 48 45 45 54 29 | 29 20 29 3b 0a 0a 20 20 |= SHEET)|) );.. | |00006220| 69 66 20 28 67 44 69 61 | 6c 6f 67 2e 73 65 6c 65 |if (gDia|log.sele| |00006230| 63 74 65 64 54 79 70 65 | 20 21 3d 20 53 54 59 4c |ctedType| != STYL| |00006240| 45 5f 52 55 4c 45 29 20 | 7b 0a 20 20 20 20 2f 2f |E_RULE) |{. //| |00006250| 20 75 73 65 72 20 64 69 | 64 20 6e 6f 74 20 73 65 | user di|d not se| |00006260| 6c 65 63 74 20 61 20 43 | 53 53 53 74 79 6c 65 52 |lect a C|SSStyleR| |00006270| 75 6c 65 2c 20 6c 65 74 | 27 73 20 66 61 6c 6c 62 |ule, let|'s fallb| |00006280| 61 63 6b 20 74 6f 20 49 | 6e 66 6f 20 74 61 62 0a |ack to I|nfo tab.| |00006290| 20 20 20 20 74 61 62 20 | 3d 20 47 45 4e 45 52 41 | tab |= GENERA| |000062a0| 4c 5f 54 41 42 3b 0a 20 | 20 7d 0a 20 20 69 66 20 |L_TAB;. | }. if | |000062b0| 28 21 74 61 62 29 20 7b | 0a 20 20 20 20 2f 2f 20 |(!tab) {|. // | |000062c0| 74 68 69 73 20 6d 65 74 | 68 6f 64 20 67 65 74 73 |this met|hod gets| |000062d0| 20 63 61 6c 6c 65 64 20 | 62 79 20 61 20 73 65 6c | called |by a sel| |000062e0| 65 63 74 69 6f 6e 20 69 | 6e 20 74 68 65 20 74 72 |ection i|n the tr| |000062f0| 65 65 2e 20 49 73 20 74 | 68 65 72 65 20 61 0a 20 |ee. Is t|here a. | |00006300| 20 20 20 2f 2f 20 74 61 | 62 20 61 6c 72 65 61 64 | // ta|b alread| |00006310| 79 20 73 65 6c 65 63 74 | 65 64 20 3f 20 49 66 20 |y select|ed ? If | |00006320| 79 65 73 2c 20 6b 65 65 | 70 20 69 74 3b 20 69 66 |yes, kee|p it; if| |00006330| 20 6e 6f 2c 20 66 61 6c | 6c 62 61 63 6b 20 74 6f | no, fal|lback to| |00006340| 20 74 68 65 0a 20 20 20 | 20 2f 2f 20 49 6e 66 6f | the. | // Info| |00006350| 20 74 61 62 0a 20 20 20 | 20 74 61 62 20 3d 20 67 | tab. | tab = g| |00006360| 44 69 61 6c 6f 67 2e 73 | 65 6c 65 63 74 65 64 54 |Dialog.s|electedT| |00006370| 61 62 20 3f 20 67 44 69 | 61 6c 6f 67 2e 73 65 6c |ab ? gDi|alog.sel| |00006380| 65 63 74 65 64 54 61 62 | 20 3a 20 47 45 4e 45 52 |ectedTab| : GENER| |00006390| 41 4c 5f 54 41 42 3b 0a | 20 20 7d 0a 20 20 73 77 |AL_TAB;.| }. sw| |000063a0| 69 74 63 68 20 28 74 61 | 62 29 20 7b 0a 20 20 20 |itch (ta|b) {. | |000063b0| 20 63 61 73 65 20 54 45 | 58 54 5f 54 41 42 3a 0a | case TE|XT_TAB:.| |000063c0| 20 20 20 20 20 20 2f 2f | 20 77 65 20 68 61 76 65 | //| we have| |000063d0| 20 74 6f 20 75 70 64 61 | 74 65 20 74 68 65 20 74 | to upda|te the t| |000063e0| 65 78 74 20 70 72 65 76 | 69 65 77 2c 20 6c 65 74 |ext prev|iew, let| |000063f0| 27 73 20 72 65 6d 6f 76 | 65 20 69 74 73 20 73 74 |'s remov|e its st| +--------+-------------------------+-------------------------+--------+--------+ Only 25.0 KB of data is shown above.